Commit 6aad89c8 authored by Anton Blanchard's avatar Anton Blanchard Committed by J. Bruce Fields

sunrpc: align cache_clean work's timer

Align cache_clean work.
Signed-off-by: default avatarAnton 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: default avatarAndrew Morton <akpm@linux-foundation.org>
Acked-by: default avatarDavid S. Miller <davem@davemloft.net>
Signed-off-by: default avatarJ. Bruce Fields <bfields@citi.umich.edu>
parent 48e03bc5
...@@ -488,7 +488,7 @@ static void do_cache_clean(struct work_struct *work) ...@@ -488,7 +488,7 @@ static void do_cache_clean(struct work_struct *work)
{ {
int delay = 5; int delay = 5;
if (cache_clean() == -1) if (cache_clean() == -1)
delay = 30*HZ; delay = round_jiffies_relative(30*HZ);
if (list_empty(&cache_list)) if (list_empty(&cache_list))
delay = 0; delay = 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment