From mboxrd@z Thu Jan 1 00:00:00 1970 From: akpm@linux-foundation.org Subject: [patch 1/1] sunrpc: align cache_clean work's timer Date: Wed, 10 Jun 2009 12:52:21 -0700 Message-ID: <200906101952.n5AJqLZb006065@imap1.linux-foundation.org> Cc: linux-nfs@vger.kernel.org, akpm@linux-foundation.org, anton@samba.org, davem@davemloft.net, neilb@suse.de To: trond.myklebust@fys.uio.no Return-path: Received: from smtp1.linux-foundation.org ([140.211.169.13]:46992 "EHLO smtp1.linux-foundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752062AbZFJTw2 (ORCPT ); Wed, 10 Jun 2009 15:52:28 -0400 Sender: linux-nfs-owner@vger.kernel.org List-ID: From: Anton Blanchard Align cache_clean work. Signed-off-by: Anton Blanchard Cc: Neil Brown Cc: Trond Myklebust Cc: "David S. Miller" Signed-off-by: Andrew Morton --- 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; _