Skip to content

nfsd: make service created per net

Stanislav Kinsbursky linux-nfs lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest8 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/8nfsd: move per-net startup code to separated functionfs/nfsd/nfssvc.c+33 -150 replies
2/8nfsd: per-net NFSd up flag introducedfs/nfsd/netns.h fs/nfsd/nfssvc.c+14 -00 replies
3/8nfsd: make NFSd service boot time per-netfs/nfsd/netns.h fs/nfsd/nfs3xdr.c fs/nfsd/nfs4proc.c +2 more+23 -160 replies
4/8nfsd: make NFSd service structure allocated per netfs/nfsd/netns.h fs/nfsd/nfs4state.c fs/nfsd/nfsctl.c +2 more+110 -780 replies
5/8nfsd: introduce helpers for generic resources init and shutdownfs/nfsd/nfssvc.c+34 -160 replies
6/8nfsd: simplify NFSv4 state init and shutdownfs/nfsd/nfssvc.c+15 -290 replies
7/8nfsd: replace boolean nfsd_up flag by users counterfs/nfsd/nfssvc.c+5 -40 replies
8/8nfsd: simplify service shutdownfs/nfsd/nfssvc.c+2 -70 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 0/8] nfsd: make service created per net

This patch set prepares service control to be able to start separated independent NFSd services in different network namespace environments. Key changes are:
1) Create independent instances of NFSd service (and thus threads pool) for each network namespace.
2) Control generic resources allocation and destruction by usage counter.
3) Cleanup and simplify Nfsd service start and shutdown.
4) Move some more NFSd state parts (like boot_time and "nfsd is up" flag to per-net data).

The following series implements...

---

Stanislav Kinsbursky (8):
nfsd: move per-net startup code to separated function
nfsd: per-net NFSd up flag introduced
nfsd: make NFSd service boot time per-net
nfsd: make NFSd service structure allocated per net
nfsd: introduce helpers for generic resources init and shutdown
nfsd: simplify NFSv4 state init and shutdown
nfsd: replace boolean nfsd_up flag by users counter
nfsd: simplify service shutdown

 fs/nfsd/netns.h     |    9 ++
 fs/nfsd/nfs3xdr.c   |   14 +++-
 fs/nfsd/nfs4proc.c  |   11 ++-
 fs/nfsd/nfs4state.c |   14 ++--
 fs/nfsd/nfsctl.c    |   63 ++++++++++-------
 fs/nfsd/nfsd.h      |   23 +-----
 fs/nfsd/nfssvc.c    |  185 +++++++++++++++++++++++++++++++++------------------
 7 files changed, 195 insertions(+), 124 deletions(-)