nfsd: nfsd_file cache entries should be per net namespace
authorTrond Myklebust <trondmy@gmail.com>
Mon, 2 Sep 2019 17:02:55 +0000 (13:02 -0400)
committerJ. Bruce Fields <bfields@redhat.com>
Tue, 10 Sep 2019 13:23:41 +0000 (09:23 -0400)
commit5e113224c17e2fb156b785ddbbc48a0209fddb0c
treedd3f0e389afb149e37ab9a96306f4f8445398169
parent2b86e3aaf993a3ea6c73dfcf86143061a40c62e6
nfsd: nfsd_file cache entries should be per net namespace

Ensure that we can safely clear out the file cache entries when the
nfs server is shut down on a container. Otherwise, the file cache
may end up pinning the mounts.

Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
fs/nfsd/export.c
fs/nfsd/filecache.c
fs/nfsd/filecache.h
fs/nfsd/nfssvc.c