diff options
author | NeilBrown <neilb@suse.de> | 2021-12-01 02:58:14 +0300 |
---|---|---|
committer | Chuck Lever <chuck.lever@oracle.com> | 2021-12-13 21:42:59 +0300 |
commit | 1463b38e7cf34d4cc60f41daff459ad807b2e408 (patch) | |
tree | 0e428f9bc63900ec78202075d1cf3db7228b191a /net/sunrpc/svc_xprt.c | |
parent | 1e37d0e5bda45881eea1bec4b812def72c7d4aea (diff) | |
download | linux-1463b38e7cf34d4cc60f41daff459ad807b2e408.tar.xz |
NFSD: simplify per-net file cache management
We currently have a 'laundrette' for closing cached files - a different
work-item for each network-namespace.
These 'laundrettes' (aka struct nfsd_fcache_disposal) are currently on a
list, and are freed using rcu.
The list is not necessary as we have a per-namespace structure (struct
nfsd_net) which can hold a link to the nfsd_fcache_disposal.
The use of kfree_rcu is also unnecessary as the cache is cleaned of all
files associated with a given namespace, and no new files can be added,
before the nfsd_fcache_disposal is freed.
So add a '->fcache_disposal' link to nfsd_net, and discard the list
management and rcu usage.
Signed-off-by: NeilBrown <neilb@suse.de>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Diffstat (limited to 'net/sunrpc/svc_xprt.c')
0 files changed, 0 insertions, 0 deletions