diff options
author | Kentaro Makita <k-makita@np.css.fujitsu.com> | 2008-07-25 22:44:40 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-07-26 15:00:02 -0400 |
commit | f3c6ba986ab4527b6dfacf9f3b9e40f72466a8b2 (patch) | |
tree | f240cc15f23afba6f987e6e61c41a04c30537040 /fs | |
parent | a76eef9573c93f8f324ebacfd090a3e319a64d59 (diff) |
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')
-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: | |||
487 | if (!cnt) | 487 | if (!cnt) |
488 | break; | 488 | break; |
489 | } | 489 | } |
490 | cond_resched_lock(&dcache_lock); | ||
490 | } | 491 | } |
491 | } | 492 | } |
492 | while (!list_empty(&tmp)) { | 493 | while (!list_empty(&tmp)) { |