[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <486051B3.4070903@np.css.fujitsu.com>
Date: Tue, 24 Jun 2008 10:45:23 +0900
From: Kentaro Makita <k-makita@...css.fujitsu.com>
To: linux-kernel@...r.kernel.org
CC: linux-fsdevel@...r.kernel.org, akpm@...ux-foundation.org,
viro@...IV.linux.org.uk, harvey.harrison@...il.com
Subject: [RESEND][PATCH -mm 2/2] vfs: add cond_resched_lock while scanning
dentry LRU lists
o add cond_resched_lock(&dcache_lock) while scanning LRU lists on superblocks
in __shrink_dcache_sb()
Signed-off-by: Kentaro Makita <k-makita@...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)) {
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists