NFSD: Refactor the duplicate reply cache shrinker
[ Upstream commit c135e126 ] 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> [ cel: adjusted to apply to v6.1.y -- this one might not be necessary ] Signed-off-by:
Chuck Lever <chuck.lever@oracle.com> Signed-off-by:
Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Loading