Skip to content

nfsd: cleanup "init_net" references

Stanislav Kinsbursky linux-nfs lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest7 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7nfsd: use "init_net" for portmapperfs/nfsd/nfssvc.c+1 -20 replies
2/7nfsd: pass net to nfsd_init_socks()fs/nfsd/nfssvc.c+4 -40 replies
3/7nfsd: pass net to nfsd_startup() and nfsd_shutdown()fs/nfsd/nfssvc.c+6 -90 replies
4/7nfsd: pass net to nfsd_create_serv()fs/nfsd/nfsctl.c fs/nfsd/nfsd.h fs/nfsd/nfssvc.c+5 -60 replies
5/7nfsd: pass net to nfsd_svc()fs/nfsd/nfsctl.c fs/nfsd/nfsd.h fs/nfsd/nfssvc.c+5 -40 replies
6/7nfsd: pass net to nfsd_set_nrthreads()fs/nfsd/nfsctl.c fs/nfsd/nfsd.h fs/nfsd/nfssvc.c+4 -40 replies
7/7nfsd: pass net to __write_ports() and downfs/nfsd/nfsctl.c+8 -80 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/7] nfsd: cleanup "init_net" references

Hard-coded "init_net" pointer is widely used in NFSd code.
This patch replaces "init_net" references by passed struct net pointer where requied.
In future, proper network namespace context will be taken from NFSd file system superblock private data or, where it's impossible, from current.

The following series implements...

---

Stanislav Kinsbursky (7):
nfsd: use "init_net" for portmapper
nfsd: pass net to nfsd_init_socks()
nfsd: pass net to nfsd_startup() and nfsd_shutdown()
nfsd: pass net to nfsd_create_serv()
nfsd: pass net to nfsd_svc()
nfsd: pass net to nfsd_set_nrthreads()
nfsd: pass net to __write_ports() and down

 fs/nfsd/nfsctl.c |   27 +++++++++++++++------------
 fs/nfsd/nfsd.h   |    6 +++---
 fs/nfsd/nfssvc.c |   35 ++++++++++++++---------------------
 3 files changed, 32 insertions(+), 36 deletions(-)