OSDN Git Service

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)
commitc6c7f2a84da459bcc3714044e74a9cb66de31039
tree985787f78b4a5ec9872167996cc94256b4a6409f
parentf988a7b71d1e66e63f79cd59c763875347943a7a
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