diff options
Diffstat (limited to 'fs/btrfs/extent_io.c')
-rw-r--r-- | fs/btrfs/extent_io.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/fs/btrfs/extent_io.c b/fs/btrfs/extent_io.c index 0d69425d0197..a0811e639f58 100644 --- a/fs/btrfs/extent_io.c +++ b/fs/btrfs/extent_io.c | |||
@@ -648,11 +648,7 @@ again: | |||
648 | if (start > end) | 648 | if (start > end) |
649 | break; | 649 | break; |
650 | 650 | ||
651 | if (need_resched()) { | 651 | cond_resched_lock(&tree->lock); |
652 | spin_unlock(&tree->lock); | ||
653 | cond_resched(); | ||
654 | spin_lock(&tree->lock); | ||
655 | } | ||
656 | } | 652 | } |
657 | out: | 653 | out: |
658 | spin_unlock(&tree->lock); | 654 | spin_unlock(&tree->lock); |