OSDN Git Service

NFSD: Refactor the duplicate reply cache shrinker
authorChuck Lever <chuck.lever@oracle.com>
Sun, 9 Jul 2023 15:45:35 +0000 (11:45 -0400)
committerChuck Lever <chuck.lever@oracle.com>
Tue, 29 Aug 2023 21:45:22 +0000 (17:45 -0400)
commitc135e1269f34dfdea4bd94c11060c83a3c0b3c12
tree3f551912b5c013303210ba324d0a2812223ebadd
parenta9507f6af1450ed26a4a36d979af518f5bb21e5d
NFSD: Refactor the duplicate reply cache shrinker

Avoid holding the bucket lock while freeing cache entries. This
change also caps the number of entries that are freed when the
shrinker calls to reduce the shrinker's impact on the cache's
effectiveness.

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