[<prev] [next>] [day] [month] [year] [list]
Message-Id: <200905122106.n4CL6ovd009895@imap1.linux-foundation.org>
Date: Tue, 12 May 2009 13:47:34 -0700
From: akpm@...ux-foundation.org
To: davem@...emloft.net
Cc: netdev@...r.kernel.org, akpm@...ux-foundation.org, anton@...ba.org,
neilb@...e.de, trond.myklebust@....uio.no
Subject: [patch 2/2] sunrpc: align cache_clean work's timer
From: Anton Blanchard <anton@...ba.org>
Align cache_clean work.
Signed-off-by: Anton Blanchard <anton@...ba.org>
Cc: Neil Brown <neilb@...e.de>
Cc: Trond Myklebust <trond.myklebust@....uio.no>
Cc: "David S. Miller" <davem@...emloft.net>
Signed-off-by: Andrew Morton <akpm@...ux-foundation.org>
---
net/sunrpc/cache.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff -puN net/sunrpc/cache.c~sunrpc-align-cache_clean-works-timer net/sunrpc/cache.c
--- a/net/sunrpc/cache.c~sunrpc-align-cache_clean-works-timer
+++ a/net/sunrpc/cache.c
@@ -488,7 +488,7 @@ static void do_cache_clean(struct work_s
{
int delay = 5;
if (cache_clean() == -1)
- delay = 30*HZ;
+ delay = round_jiffies_relative(30*HZ);
if (list_empty(&cache_list))
delay = 0;
_
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists