lkml.org 
[lkml]   [2008]   [Jun]   [9]   [last100]   RSS Feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
DateMon, 09 Jun 2008 14:33:02 +0900
FromKentaro Makita <>
Subject[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@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)) {







\
 
 \ /
  Last update: 2008-06-09 07:37    [from the cache]
©2003-2008