Skip to content

RFC nfsd: support for lifting grace period early

Jeff Layton linux-nfs 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest4 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4lockd: add a /proc/fs/lockd/nlm_end_grace filefs/lockd/Makefile fs/lockd/procfs.c fs/lockd/procfs.h +1 more+114 -00 replies
2/4nfsd: add a v4_end_grace file to /proc/fs/nfsdfs/nfsd/nfs4state.c fs/nfsd/nfsctl.c fs/nfsd/state.h+39 -11 reply
3/4nfsd: remove redundant boot_time parm from grace_done client tracking opfs/nfsd/nfs4recover.c fs/nfsd/nfs4state.c fs/nfsd/state.h+10 -110 replies
4/4nfsd: pass extra info in env vars to upcalls to allow for early grace period endfs/nfsd/nfs4recover.c fs/nfsd/nfs4state.c+80 -140 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [kernel RFC PATCH 0/4] nfsd: support for lifting grace period early

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
Signature · 1 line
1.9.3