summaryrefslogtreecommitdiffstats
path: root/fs/dcache.c
diff options
context:
space:
mode:
authorKentaro Makita <k-makita@np.css.fujitsu.com>2008-07-26 04:44:40 +0200
committerLinus Torvalds <torvalds@linux-foundation.org>2008-07-26 21:00:02 +0200
commitf3c6ba986ab4527b6dfacf9f3b9e40f72466a8b2 (patch)
treef240cc15f23afba6f987e6e61c41a04c30537040 /fs/dcache.c
parentblock/blk-map.c: use the new object_is_on_stack() helper (diff)
downloadlinux-f3c6ba986ab4527b6dfacf9f3b9e40f72466a8b2.tar.xz
linux-f3c6ba986ab4527b6dfacf9f3b9e40f72466a8b2.zip
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>
Diffstat (limited to 'fs/dcache.c')
-rw-r--r--fs/dcache.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/dcache.c b/fs/dcache.c
index 3818d6ab76ca..f2584d22cb45 100644
--- a/fs/dcache.c
+++ b/fs/dcache.c
@@ -487,6 +487,7 @@ restart:
if (!cnt)
break;
}
+ cond_resched_lock(&dcache_lock);
}
}
while (!list_empty(&tmp)) {