Commit 6d434b4c authored by NeilBrown's avatar NeilBrown Committed by Greg Kroah-Hartman
Browse files

NFSv4: keep state manager thread active if swap is enabled



[ Upstream commit 4dc73c67 ]

If we are swapping over NFSv4, we may not be able to allocate memory to
start the state-manager thread at the time when we need it.
So keep it always running when swap is enabled, and just signal it to
start.

This requires updating and testing the cl_swapper count on the root
rpc_clnt after following all ->cl_parent links.

Signed-off-by: default avatarNeilBrown <neilb@suse.de>
Signed-off-by: default avatarTrond Myklebust <trond.myklebust@hammerspace.com>
Stable-dep-of: b46d80bd ("nfs4trace: fix state manager flag printing")
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent d601f782
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment