lkml.org 
[lkml]   [2006]   [Mar]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH] Reduce sched latency in shrink_dcache_sb()
This patch reduces scheduling latency in shrink_dcache_sb()
noticed during remounting of big partitions with many cached dentries.
The same latency fix was applied to select_parent() long ago.

Signed-Off-By: Denis Lunev <den@sw.ru>
Signed-Off-By: Pavel Emelianov <xemul@sw.ru>
Signed-Off-By: Kirill Korotaev <dev@openvz.org>

Thanks,
Kirill
--- ./fs/dcache.c.lat 2006-03-09 16:03:44.000000000 +0300
+++ ./fs/dcache.c 2006-03-09 20:19:41.000000000 +0300
@@ -491,6 +491,7 @@ repeat:
continue;
}
prune_one_dentry(dentry);
+ cond_resched_lock(&dcache_lock);
goto repeat;
}
spin_unlock(&dcache_lock);
\
 
 \ /
  Last update: 2006-03-09 18:24    [W:0.031 / U:0.104 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site