提交 6aad89c8 编写于 作者: A Anton Blanchard 提交者: J. Bruce Fields

sunrpc: align cache_clean work's timer

Align cache_clean work.
Signed-off-by: NAnton Blanchard <anton@samba.org>
Cc: Neil Brown <neilb@suse.de>
Cc: Trond Myklebust <trond.myklebust@fys.uio.no>
Cc: "David S. Miller" <davem@davemloft.net>
Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
Acked-by: NDavid S. Miller <davem@davemloft.net>
Signed-off-by: NJ. Bruce Fields <bfields@citi.umich.edu>
上级 48e03bc5
......@@ -488,7 +488,7 @@ static void do_cache_clean(struct work_struct *work)
{
int delay = 5;
if (cache_clean() == -1)
delay = 30*HZ;
delay = round_jiffies_relative(30*HZ);
if (list_empty(&cache_list))
delay = 0;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册