Reduce sched latency in shrink_dcache_sb()
PATCH 1/1 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 <[email protected]>
Signed-off-by Pavel Emelianov <[email protected]>
Signed-off-by Kirill Korotaev <[email protected]>
Thanks,
Kirill
fs/dcache.c renamed from fs/dcache.c.lat +1 -0
@@ -491,6 +491,7 @@ repeat:continue ; }prune_one_dentry (dentry); +cond_resched_lock (&dcache_lock); goto repeat; }spin_unlock (&dcache_lock);