linux-nfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "J. Bruce Fields" <bfields@fieldses.org>
To: linux-nfs@vger.kernel.org
Subject: expire clients more promptly
Date: Mon, 11 Oct 2010 19:31:53 -0400	[thread overview]
Message-ID: <20101011233153.GA16442@fieldses.org> (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 <bfields@redhat.com>
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@redhat.com>

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:

                 reply	other threads:[~2010-10-11 23:31 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20101011233153.GA16442@fieldses.org \
    --to=bfields@fieldses.org \
    --cc=linux-nfs@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).