Signed-off-by: Andrew Morton Index: linux-2.6.8-rc1/fs/dcache.c =================================================================== --- linux-2.6.8-rc1.orig/fs/dcache.c 2004-07-15 02:41:40.000000000 +1000 +++ linux-2.6.8-rc1/fs/dcache.c 2004-07-15 10:03:38.303332222 +1000 @@ -379,6 +379,11 @@ struct dentry *dentry; struct list_head *tmp; + if (unlikely((count & 255) == 0)) { + spin_unlock(&dcache_lock); + cpu_relax(); + spin_lock(&dcache_lock); + } tmp = dentry_unused.prev; if (tmp == &dentry_unused) break;