diff options
author | J. Bruce Fields <bfields@redhat.com> | 2019-05-17 15:03:38 +0200 |
---|---|---|
committer | J. Bruce Fields <bfields@redhat.com> | 2019-07-03 23:52:08 +0200 |
commit | 3ba75830ce175550ef45c6524ec62faab8f62c1b (patch) | |
tree | 1ba1eb10a0500a75b3b5f568a75b1bf68bf6d343 /fs/nfsd/cache.h | |
parent | nfsd: don't call nfsd_reply_cache_shutdown twice (diff) | |
download | linux-3ba75830ce175550ef45c6524ec62faab8f62c1b.tar.xz linux-3ba75830ce175550ef45c6524ec62faab8f62c1b.zip |
nfsd4: drc containerization
The nfsd duplicate reply cache should not be shared between network
namespaces.
The most straightforward way to fix this is just to move every global in
the code to per-net-namespace memory, so that's what we do.
Still todo: sort out which members of nfsd_stats should be global and
which per-net-namespace.
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'fs/nfsd/cache.h')
-rw-r--r-- | fs/nfsd/cache.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/fs/nfsd/cache.h b/fs/nfsd/cache.h index 4a98537efb0f..10ec5ecdf117 100644 --- a/fs/nfsd/cache.h +++ b/fs/nfsd/cache.h @@ -10,6 +10,7 @@ #define NFSCACHE_H #include <linux/sunrpc/svc.h> +#include "netns.h" /* * Representation of a reply cache entry. @@ -77,8 +78,8 @@ enum { /* Checksum this amount of the request */ #define RC_CSUMLEN (256U) -int nfsd_reply_cache_init(void); -void nfsd_reply_cache_shutdown(void); +int nfsd_reply_cache_init(struct nfsd_net *); +void nfsd_reply_cache_shutdown(struct nfsd_net *); int nfsd_cache_lookup(struct svc_rqst *); void nfsd_cache_update(struct svc_rqst *, int, __be32 *); int nfsd_reply_cache_stats_open(struct inode *, struct file *); |