mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-05 06:08:22 +00:00
Btrfs: clean up for wait_extent_bit()
We can just use cond_resched_lock(). Signed-off-by: Xiao Guangrong <xiaoguangrong@cn.fujitsu.com> Signed-off-by: Li Zefan <lizf@cn.fujitsu.com> Signed-off-by: Chris Mason <chris.mason@oracle.com>
This commit is contained in:
parent
3150b69969
commit
ded91f0814
1 changed files with 1 additions and 5 deletions
|
@ -648,11 +648,7 @@ again:
|
|||
if (start > end)
|
||||
break;
|
||||
|
||||
if (need_resched()) {
|
||||
spin_unlock(&tree->lock);
|
||||
cond_resched();
|
||||
spin_lock(&tree->lock);
|
||||
}
|
||||
cond_resched_lock(&tree->lock);
|
||||
}
|
||||
out:
|
||||
spin_unlock(&tree->lock);
|
||||
|
|
Loading…
Add table
Reference in a new issue