expire clients more promptly

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 <bfields@xxxxxxxxxx>
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.
    
    Signed-off-by: J. Bruce Fields <bfields@xxxxxxxxxx>

diff --git a/fs/nfsd/nfsd.h b/fs/nfsd/nfsd.h
index b76ac3a..6b641cf 100644
--- a/fs/nfsd/nfsd.h
+++ b/fs/nfsd/nfsd.h
@@ -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:
--
To unsubscribe from this list: send the line "unsubscribe linux-nfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Filesystem Development]     [Linux USB Development]     [Linux Media Development]     [Video for Linux]     [Linux NILFS]     [Linux Audio Users]     [Yosemite Info]     [Linux SCSI]

  Powered by Linux