vfs: add cond_resched_lock while scanning dentry LRU lists
Add cond_resched_lock(&dcache_lock) while scanning LRU lists on superblocks in __shrink_dcache_sb() Signed-off-by: Kentaro Makita <k-makita@np.css.fujitsu.com> Cc: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
committed by
Linus Torvalds
parent
a76eef9573
commit
f3c6ba986a
@@ -487,6 +487,7 @@ restart:
|
|||||||
if (!cnt)
|
if (!cnt)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
cond_resched_lock(&dcache_lock);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
while (!list_empty(&tmp)) {
|
while (!list_empty(&tmp)) {
|
||||||
|
Reference in New Issue
Block a user