提交 2ab13460 编写于 作者: K Kirill Korotaev 提交者: Linus Torvalds

[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: NDenis Lunev <den@sw.ru>
Signed-off-by: NPavel Emelianov <xemul@sw.ru>
Signed-off-by: NKirill Korotaev <dev@openvz.org>
Signed-off-by: NAndrew Morton <akpm@osdl.org>
Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
上级 4ffc8444
...@@ -489,6 +489,7 @@ void shrink_dcache_sb(struct super_block * sb) ...@@ -489,6 +489,7 @@ void shrink_dcache_sb(struct super_block * sb)
continue; continue;
} }
prune_one_dentry(dentry); prune_one_dentry(dentry);
cond_resched_lock(&dcache_lock);
goto repeat; goto repeat;
} }
spin_unlock(&dcache_lock); spin_unlock(&dcache_lock);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册