Skip to contentSkip to conversation

expire clients more promptly

PATCH J. Bruce Fields 1 participant 1 message Oct 11, 2010

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

I'm planning on queuing this up for 2.6.37.

Honestly, this is mainly just to make a few pynfs tests pass more reliably, which isn't a good enough reason on its own.

But I also can't see any problem with letting the laundromat thread run as much as once a second.

--b.

commit 76b409f70568ef011e476ce60eab6770572f4839

Author: J. Bruce Fields <[email protected]>
Date:   Mon Oct 11 16:49:44 2010 -0400

nfsd4: expire clients more promptly

Expire clients more promptly, at the expense of possibly running the laundromat thread more frequently.

Though it's not the default, I'd like it to be feasible to run with a lease time of just a few seconds, at which point a minimum 10 second wait between laundromat runs seems a little much.

fs/nfsd/nfsd.h +1 -1
index b76ac3a..6b641cf 100644
@@ -249,7 +249,7 @@ extern time_t nfsd4_grace;
 #define	COMPOUND_SLACK_SPACE		140    /* OP_GETFH */
 #define COMPOUND_ERR_SLACK_SPACE	12     /* OP_SETATTR */
 
-#define NFSD_LAUNDROMAT_MINTIMEOUT      10   /* seconds */
+#define NFSD_LAUNDROMAT_MINTIMEOUT      1   /* seconds */
 
 /*
  * The following attributes are currently not supported by the NFSv4 server: