All of lore.kernel.org
 help / color / mirror / Atom feed
* CACHE_NEW_EXPIRY is 120, nextcheck initialized to 30*60=1800?
@ 2011-02-22 13:31 Rob Landley
  2011-02-22 21:07 ` NeilBrown
  0 siblings, 1 reply; 5+ messages in thread
From: Rob Landley @ 2011-02-22 13:31 UTC (permalink / raw)
  To: linux-nfs

In net/sunrpc/cache.c line 416 or so (function cache_clean()) there's
this bit:

else {
        current_index = 0;
        current_detail->nextcheck = seconds_since_boot()+30*60;
}

The other uses of seconds_since_boot() add CACHE_NEW_EXPIRY (which is
120).  This is A) more than ten times that, B) a magic inline constant.

Is there a reason for this?  (Some subtle cache lifetime balancing thing?)

Rob

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2011-02-23 19:30 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-02-22 13:31 CACHE_NEW_EXPIRY is 120, nextcheck initialized to 30*60=1800? Rob Landley
2011-02-22 21:07 ` NeilBrown
2011-02-23  3:59   ` Rob Landley
2011-02-23  5:53     ` NeilBrown
2011-02-23 19:27       ` NFS in containers Rob Landley

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.