mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2025-01-07 14:32:23 +00:00
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:
parent
e57cf21e97
commit
853d8ec4b2
@ -366,8 +366,8 @@ static noinline void run_scheduled_bios(struct btrfs_device *device)
|
||||
btrfsic_submit_bio(cur->bi_rw, cur);
|
||||
num_run++;
|
||||
batch_run++;
|
||||
if (need_resched())
|
||||
cond_resched();
|
||||
|
||||
cond_resched();
|
||||
|
||||
/*
|
||||
* we made progress, there is more work to do and the bdi
|
||||
@ -400,8 +400,7 @@ static noinline void run_scheduled_bios(struct btrfs_device *device)
|
||||
* against it before looping
|
||||
*/
|
||||
last_waited = ioc->last_waited;
|
||||
if (need_resched())
|
||||
cond_resched();
|
||||
cond_resched();
|
||||
continue;
|
||||
}
|
||||
spin_lock(&device->io_lock);
|
||||
|
Loading…
Reference in New Issue
Block a user