diff options
-rw-r--r-- | fs/btrfs/volumes.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/fs/btrfs/volumes.c b/fs/btrfs/volumes.c index 8222f6f74147..50bb7b8b17e8 100644 --- a/fs/btrfs/volumes.c +++ b/fs/btrfs/volumes.c | |||
@@ -366,8 +366,8 @@ loop_lock: | |||
366 | btrfsic_submit_bio(cur->bi_rw, cur); | 366 | btrfsic_submit_bio(cur->bi_rw, cur); |
367 | num_run++; | 367 | num_run++; |
368 | batch_run++; | 368 | batch_run++; |
369 | if (need_resched()) | 369 | |
370 | cond_resched(); | 370 | cond_resched(); |
371 | 371 | ||
372 | /* | 372 | /* |
373 | * we made progress, there is more work to do and the bdi | 373 | * we made progress, there is more work to do and the bdi |
@@ -400,8 +400,7 @@ loop_lock: | |||
400 | * against it before looping | 400 | * against it before looping |
401 | */ | 401 | */ |
402 | last_waited = ioc->last_waited; | 402 | last_waited = ioc->last_waited; |
403 | if (need_resched()) | 403 | cond_resched(); |
404 | cond_resched(); | ||
405 | continue; | 404 | continue; |
406 | } | 405 | } |
407 | spin_lock(&device->io_lock); | 406 | spin_lock(&device->io_lock); |