NFSD: add shrinker to reap courtesy clients on low memory condition
[ Upstream commit 7746b32f ] Add courtesy_client_reaper to react to low memory condition triggered by the system memory shrinker. The delayed_work for the courtesy_client_reaper is scheduled on the shrinker's count callback using the laundry_wq. The shrinker's scan callback is not used for expiring the courtesy clients due to potential deadlocks. Signed-off-by:Dai Ngo <dai.ngo@oracle.com> [ cel: adjusted to apply without e33c267a ] Signed-off-by:
Chuck Lever <chuck.lever@oracle.com> Signed-off-by:
Sasha Levin <sashal@kernel.org>
Loading