NFSD: Replace nfsd_prune_bucket()
authorChuck Lever <chuck.lever@oracle.com>
Sun, 9 Jul 2023 15:45:29 +0000 (11:45 -0400)
committerChuck Lever <chuck.lever@oracle.com>
Tue, 29 Aug 2023 21:45:22 +0000 (17:45 -0400)
commita9507f6af1450ed26a4a36d979af518f5bb21e5d
tree0b910c2c4078479339537b098ae5d6c382f31fb3
parentff0d169329768c1102b7b07eebe5a9839aa1c143
NFSD: Replace nfsd_prune_bucket()

Enable nfsd_prune_bucket() to drop the bucket lock while calling
kfree(). Use the same pattern that Jeff recently introduced in the
NFSD filecache.

A few percpu operations are moved outside the lock since they
temporarily disable local IRQs which is expensive and does not
need to be done while the lock is held.

Reviewed-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
fs/nfsd/nfscache.c
fs/nfsd/trace.h