Commit 853d8ec4 authored by David Sterba's avatar David Sterba

btrfs: need_resched not needed with cond_resched

Cleanup, no special reason to do

if (need_resched())
        cond_resched();
Signed-off-by: default avatarDavid Sterba <dsterba@suse.cz>
parent e57cf21e
...@@ -366,7 +366,7 @@ static noinline void run_scheduled_bios(struct btrfs_device *device) ...@@ -366,7 +366,7 @@ static noinline void run_scheduled_bios(struct btrfs_device *device)
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 @@ static noinline void run_scheduled_bios(struct btrfs_device *device) ...@@ -400,7 +400,6 @@ static noinline void run_scheduled_bios(struct btrfs_device *device)
* 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;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment