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:
parent
a76eef9573
commit
f3c6ba986a
1 changed files with 1 additions and 0 deletions
|
@ -487,6 +487,7 @@ static void __shrink_dcache_sb(struct super_block *sb, int *count, int flags)
|
|||
if (!cnt)
|
||||
break;
|
||||
}
|
||||
cond_resched_lock(&dcache_lock);
|
||||
}
|
||||
}
|
||||
while (!list_empty(&tmp)) {
|
||||
|
|
Loading…
Reference in a new issue