diff options
author | Kentaro Makita <k-makita@np.css.fujitsu.com> | 2008-07-25 19:44:40 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-07-26 12:00:02 -0700 |
commit | f3c6ba986ab4527b6dfacf9f3b9e40f72466a8b2 (patch) | |
tree | f240cc15f23afba6f987e6e61c41a04c30537040 /fs/dcache.c | |
parent | a76eef9573c93f8f324ebacfd090a3e319a64d59 (diff) | |
download | talos-obmc-linux-f3c6ba986ab4527b6dfacf9f3b9e40f72466a8b2.tar.gz talos-obmc-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.c | 1 |
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)) { |