]> err.no Git - linux-2.6/commitdiff
vfs: add cond_resched_lock while scanning dentry LRU lists
authorKentaro Makita <k-makita@np.css.fujitsu.com>
Sat, 26 Jul 2008 02:44:40 +0000 (19:44 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sat, 26 Jul 2008 19:00:02 +0000 (12:00 -0700)
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>
fs/dcache.c

index 3818d6ab76ca18e398f6d425b2879012f3a49ff2..f2584d22cb45e9a46cde2fb3f8c376a47273b39a 100644 (file)
@@ -487,6 +487,7 @@ restart:
                                if (!cnt)
                                        break;
                        }
+                       cond_resched_lock(&dcache_lock);
                }
        }
        while (!list_empty(&tmp)) {