diff options
author | Trond Myklebust <trondmy@gmail.com> | 2019-09-02 13:02:55 -0400 |
---|---|---|
committer | J. Bruce Fields <bfields@redhat.com> | 2019-09-10 09:23:41 -0400 |
commit | 5e113224c17e2fb156b785ddbbc48a0209fddb0c (patch) | |
tree | dd3f0e389afb149e37ab9a96306f4f8445398169 /fs/nfsd/export.c | |
parent | 2b86e3aaf993a3ea6c73dfcf86143061a40c62e6 (diff) | |
download | linux-5e113224c17e2fb156b785ddbbc48a0209fddb0c.tar.bz2 |
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>
Diffstat (limited to 'fs/nfsd/export.c')
-rw-r--r-- | fs/nfsd/export.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfsd/export.c b/fs/nfsd/export.c index 052fac64b578..15422c951fd1 100644 --- a/fs/nfsd/export.c +++ b/fs/nfsd/export.c @@ -240,7 +240,7 @@ static void expkey_flush(void) * destroyed while we're in the middle of flushing. */ mutex_lock(&nfsd_mutex); - nfsd_file_cache_purge(); + nfsd_file_cache_purge(current->nsproxy->net_ns); mutex_unlock(&nfsd_mutex); } |