* [PATCH -mm 2/2] vfs: add cond_resched_lock while scanning dentry LRU lists
@ 2008-06-09 5:33 Kentaro Makita
0 siblings, 0 replies; only message in thread
From: Kentaro Makita @ 2008-06-09 5:33 UTC (permalink / raw)
To: linux-kernel; +Cc: linux-fsdevel, akpm, viro, harvey.harrison
o 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>
---
fs/dcache.c | 1 +
1 files changed, 1 insertion(+)
Index: b/fs/dcache.c
===================================================================
--- a/fs/dcache.c 2008-06-05 11:48:57.000000000 +0900
+++ b/fs/dcache.c 2008-06-05 11:49:19.000000000 +0900
@@ -484,6 +484,7 @@ restart:
if (--cnt == 0)
break;
}
+ cond_resched_lock(&dcache_lock);
}
}
while (!list_empty(&tmp)) {
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2008-06-09 5:35 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-06-09 5:33 [PATCH -mm 2/2] vfs: add cond_resched_lock while scanning dentry LRU lists Kentaro Makita
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.