linux-nfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [nfs-utils PATCH v2 0/7] restore nfsdcld
@ 2018-12-18 14:30 Scott Mayhew
  2018-12-18 14:30 ` [nfs-utils PATCH v2 1/7] Revert "nfsdcltrack: remove the nfsdcld daemon" Scott Mayhew
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: Scott Mayhew @ 2018-12-18 14:30 UTC (permalink / raw)
  To: steved; +Cc: jlayton, linux-nfs

When nfsdcld was released, it was quickly deprecated in favor of the
nfsdcltrack usermodehelper, so as to not require another running daemon.
The nfsdcld code was removed from nfs-utils in 2012.  That prevents
NFSv4 clients from reclaiming locks from nfsd's running in containers,
since neither nfsdcltrack nor the legacy client tracking code work in
containers.  These patches restore the nfsdcld code.

These patches are intended to go alongside some kernel patches that
introduce an enhancement that allows nfsd to "slurp" up the client
records during client tracking initialization and store them internally
in hash table.  This enables nfsd to check whether an NFSv4 client is
allowed to reclaim without having to do an upcall to nfsdcld.  It also
allows nfsd to decide to end the v4 grace period early if the number of
RECLAIM_COMPLETE operations it has received from "known" clients is
equal to the number of entries in the hash table.  It also allows nfsd
to skip the v4 grace period altogether if it knows there are no clients
allowed to reclaim.

The new nfsdcld code will work with older kernels, however in that case
there is no ability for nfsd to exit the grace period early or skip the
grace period altogether.

v2:
- Use sqlite3_column_int64() instead of sqlite3_column_int() to query
  the current & recovery values from the grace table
- Uncommented the nfsdcld section header in nfs.conf

Scott Mayhew (7):
  Revert "nfsdcltrack: remove the nfsdcld daemon"
  nfsdcld: move nfsdcld to its own directory
  nfsdcld: a few enhancements
  nfsdcld: remove some unused functions
  nfsdcld: the -p option should specify the rpc_pipefs mountpoint
  nfsdcld: add /etc/nfs.conf support
  systemd: add a unit file for nfsdcld

 .gitignore                   |   1 +
 configure.ac                 |  23 +
 nfs.conf                     |   4 +
 support/include/cld.h        |   1 +
 systemd/nfs-server.service   |   2 +
 systemd/nfsdcld.service      |  11 +
 utils/Makefile.am            |   4 +
 utils/nfsdcld/Makefile.am    |  19 +
 utils/nfsdcld/cld-internal.h |  30 ++
 utils/nfsdcld/nfsdcld.c      | 761 +++++++++++++++++++++++++++++++
 utils/nfsdcld/nfsdcld.man    | 199 +++++++++
 utils/nfsdcld/sqlite.c       | 837 +++++++++++++++++++++++++++++++++++
 utils/nfsdcld/sqlite.h       |  33 ++
 13 files changed, 1925 insertions(+)
 create mode 100644 systemd/nfsdcld.service
 create mode 100644 utils/nfsdcld/Makefile.am
 create mode 100644 utils/nfsdcld/cld-internal.h
 create mode 100644 utils/nfsdcld/nfsdcld.c
 create mode 100644 utils/nfsdcld/nfsdcld.man
 create mode 100644 utils/nfsdcld/sqlite.c
 create mode 100644 utils/nfsdcld/sqlite.h

-- 
2.17.1


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2018-12-18 14:30 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-12-18 14:30 [nfs-utils PATCH v2 0/7] restore nfsdcld Scott Mayhew
2018-12-18 14:30 ` [nfs-utils PATCH v2 1/7] Revert "nfsdcltrack: remove the nfsdcld daemon" Scott Mayhew
2018-12-18 14:30 ` [nfs-utils PATCH v2 2/7] nfsdcld: move nfsdcld to its own directory Scott Mayhew
2018-12-18 14:30 ` [nfs-utils PATCH v2 3/7] nfsdcld: a few enhancements Scott Mayhew
2018-12-18 14:30 ` [nfs-utils PATCH v2 4/7] nfsdcld: remove some unused functions Scott Mayhew
2018-12-18 14:30 ` [nfs-utils PATCH v2 5/7] nfsdcld: the -p option should specify the rpc_pipefs mountpoint Scott Mayhew
2018-12-18 14:30 ` [nfs-utils PATCH v2 6/7] nfsdcld: add /etc/nfs.conf support Scott Mayhew
2018-12-18 14:30 ` [nfs-utils PATCH v2 7/7] systemd: add a unit file for nfsdcld Scott Mayhew

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).