[PATCH -mm 2/2] vfs: add cond_resched_lock while scanning dentry LRU lists

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



o add cond_resched_lock(&dcache_lock) while scanning LRU lists on superblocks
  in __shrink_dcache_sb()

Signed-off-by: Kentaro Makita <k-makita@xxxxxxxxxxxxxxxxxx>
---
 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-fsdevel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [Samba]     [Device Mapper]     [CEPH Development]
  Powered by Linux