]> git.baikalelectronics.ru Git - kernel.git/commit
nfsd: Ensure knfsd shuts down when the "nfsd" pseudofs is unmounted
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Sat, 13 Mar 2021 21:08:47 +0000 (16:08 -0500)
committerChuck Lever <chuck.lever@oracle.com>
Mon, 22 Mar 2021 14:19:03 +0000 (10:19 -0400)
commit00efb69c97f00587a62d961e47960675576f5aa3
tree985787f78b4a5ec9872167996cc94256b4a6409f
parent5720ab72018aac0a167d6a755fa63c414ef35f12
nfsd: Ensure knfsd shuts down when the "nfsd" pseudofs is unmounted

In order to ensure that knfsd threads don't linger once the nfsd
pseudofs is unmounted (e.g. when the container is killed) we let
nfsd_umount() shut down those threads and wait for them to exit.

This also should ensure that we don't need to do a kernel mount of
the pseudofs, since the thread lifetime is now limited by the
lifetime of the filesystem.

Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
fs/nfsd/netns.h
fs/nfsd/nfs4state.c
fs/nfsd/nfsctl.c
fs/nfsd/nfsd.h
fs/nfsd/nfssvc.c