linux-nfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jeff Layton <jlayton@primarydata.com>
To: linux-nfs@vger.kernel.org
Subject: [kernel RFC PATCH 0/4] nfsd: support for lifting grace period early
Date: Fri, 15 Aug 2014 10:44:36 -0400	[thread overview]
Message-ID: <1408113880-5489-1-git-send-email-jlayton@primarydata.com> (raw)

One of the huge annoyances in dealing with knfsd is the 90s grace period
that's imposed when the server reboots. This is not just an annoyance,
but means a siginificant amount of "downtime" in many production
environments.

This patchset aimed at reducing this pain. It adds a couple of /proc
knobs that tell the lockd and nfsd lock managers to lift the grace
period.

It also changes the UMH upcalls to pass a little bit of extra info in
the form of environment variables so that the upcall program can
determine whether there are still any clients that may be in the process
of reclaiming.

For now, this is an RFC. Does anyone have comments on the general
approach here?

Jeff Layton (4):
  lockd: add a /proc/fs/lockd/nlm_end_grace file
  nfsd: add a v4_end_grace file to /proc/fs/nfsd
  nfsd: remove redundant boot_time parm from grace_done client tracking
    op
  nfsd: pass extra info in env vars to upcalls to allow for early grace
    period end

 fs/lockd/Makefile     |   1 +
 fs/lockd/procfs.c     |  76 +++++++++++++++++++++++++++++++++++
 fs/lockd/procfs.h     |  28 +++++++++++++
 fs/lockd/svc.c        |   9 +++++
 fs/nfsd/nfs4recover.c | 107 ++++++++++++++++++++++++++++++++++++++++----------
 fs/nfsd/nfs4state.c   |   8 ++--
 fs/nfsd/nfsctl.c      |  35 +++++++++++++++++
 fs/nfsd/state.h       |   5 ++-
 8 files changed, 243 insertions(+), 26 deletions(-)
 create mode 100644 fs/lockd/procfs.c
 create mode 100644 fs/lockd/procfs.h

-- 
1.9.3


             reply	other threads:[~2014-08-15 14:44 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-08-15 14:44 Jeff Layton [this message]
2014-08-15 14:44 ` [kernel RFC PATCH 1/4] lockd: add a /proc/fs/lockd/nlm_end_grace file Jeff Layton
2014-08-15 14:44 ` [kernel RFC PATCH 2/4] nfsd: add a v4_end_grace file to /proc/fs/nfsd Jeff Layton
2014-08-18 12:06   ` Jeff Layton
2014-08-15 14:44 ` [kernel RFC PATCH 3/4] nfsd: remove redundant boot_time parm from grace_done client tracking op Jeff Layton
2014-08-15 14:44 ` [kernel RFC PATCH 4/4] nfsd: pass extra info in env vars to upcalls to allow for early grace period end Jeff Layton

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=1408113880-5489-1-git-send-email-jlayton@primarydata.com \
    --to=jlayton@primarydata.com \
    --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).