All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/6] Allow containerised knfsd to set supported NFS versions
@ 2019-04-09 15:46 Trond Myklebust
  2019-04-09 15:46 ` [PATCH v2 1/6] SUNRPC/nfs: Fix return value for nfs4_callback_compound() Trond Myklebust
  2019-04-09 20:09 ` [PATCH v2 0/6] Allow containerised knfsd to set supported NFS versions J. Bruce Fields
  0 siblings, 2 replies; 8+ messages in thread
From: Trond Myklebust @ 2019-04-09 15:46 UTC (permalink / raw)
  To: J. Bruce Fields; +Cc: linux-nfs

The current knfsd implementation is unable to support containers that
want to run different combinations of NFS versions. This is because of
the way we define which versions are supported: by directly editing the
global version table in 'nfsd_program'.
The following patch set modifies the method used to define version
information by moving some of the server RPC request initialisation
down into knfsd itself, allowing it to manage the version-specific
initialisation.

Note that we might want to consider a few follow ups to this patchset
to get rid of some of the version-specific flags (e.g. vs_hidden) that
currently need to be managed in the generic SUNRPC server code on behalf
of just one or two RPC programs. These flags can easily by replaced by
custom RPC request initialisers.

---
v2: Fix compile issues when CONFIG_NFSD_V2_ACL and CONFIG_NFSD_V3_ACL
    are undefined.
    Don't move the svc_reserve() call in svc_process_common(), since
    that can trigger 'RPC request reserved xxx but used yyy' issues.


Trond Myklebust (6):
  SUNRPC/nfs: Fix return value for nfs4_callback_compound()
  SUNRPC: Add a callback to initialise server requests
  SUNRPC: Clean up generic dispatcher code
  SUNRPC: Allow further customisation of RPC program registration
  nfsd: Add custom rpcbind callbacks for knfsd
  nfsd: Allow containers to set supported nfs versions

 fs/lockd/svc.c             |   4 +-
 fs/nfs/callback.c          |   2 +
 fs/nfs/callback_xdr.c      |   2 +-
 fs/nfsd/netns.h            |   8 +
 fs/nfsd/nfs4proc.c         |   3 +-
 fs/nfsd/nfsctl.c           |  25 ++--
 fs/nfsd/nfsd.h             |   8 +-
 fs/nfsd/nfssvc.c           | 255 +++++++++++++++++++++++++------
 include/linux/sunrpc/svc.h |  33 ++++
 net/sunrpc/svc.c           | 298 ++++++++++++++++++++++++-------------
 10 files changed, 478 insertions(+), 160 deletions(-)

-- 
2.20.1


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

end of thread, other threads:[~2019-04-09 20:09 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-04-09 15:46 [PATCH v2 0/6] Allow containerised knfsd to set supported NFS versions Trond Myklebust
2019-04-09 15:46 ` [PATCH v2 1/6] SUNRPC/nfs: Fix return value for nfs4_callback_compound() Trond Myklebust
2019-04-09 15:46   ` [PATCH v2 2/6] SUNRPC: Add a callback to initialise server requests Trond Myklebust
2019-04-09 15:46     ` [PATCH v2 3/6] SUNRPC: Clean up generic dispatcher code Trond Myklebust
2019-04-09 15:46       ` [PATCH v2 4/6] SUNRPC: Allow further customisation of RPC program registration Trond Myklebust
2019-04-09 15:46         ` [PATCH v2 5/6] nfsd: Add custom rpcbind callbacks for knfsd Trond Myklebust
2019-04-09 15:46           ` [PATCH v2 6/6] nfsd: Allow containers to set supported nfs versions Trond Myklebust
2019-04-09 20:09 ` [PATCH v2 0/6] Allow containerised knfsd to set supported NFS versions J. Bruce Fields

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.