]> 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)
commit345d8ceeff3efa28a0e171b085ba0b8c6e106b16
tree985787f78b4a5ec9872167996cc94256b4a6409f
parent7767a59870a9fcd411b694f1e1a5098a5ba5c44b
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