btrfs: need_resched not needed with cond_resched

Cleanup, no special reason to do

if (need_resched())
        cond_resched();

Signed-off-by: David Sterba <dsterba@suse.cz>
This commit is contained in:
David Sterba 2015-01-08 15:15:19 +01:00
parent e57cf21e97
commit 853d8ec4b2

View file

@ -366,7 +366,7 @@ loop_lock:
btrfsic_submit_bio(cur->bi_rw, cur); btrfsic_submit_bio(cur->bi_rw, cur);
num_run++; num_run++;
batch_run++; batch_run++;
if (need_resched())
cond_resched(); cond_resched();
/* /*
@ -400,7 +400,6 @@ loop_lock:
* against it before looping * against it before looping
*/ */
last_waited = ioc->last_waited; last_waited = ioc->last_waited;
if (need_resched())
cond_resched(); cond_resched();
continue; continue;
} }