Commit 6a0a9e88 authored by Trond Myklebust's avatar Trond Myklebust Committed by sanglipeng
Browse files

NFSv4: Fix a nfs4_state_manager() race

stable inclusion
from stable-v5.10.198
commit 225cd4f67bd4c2c6541e7021dd4ebe0ca23d1994
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I987V5

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=225cd4f67bd4c2c6541e7021dd4ebe0ca23d1994



--------------------------------

[ Upstream commit ed1cc05a ]

If the NFS4CLNT_RUN_MANAGER flag got set just before we cleared
NFS4CLNT_MANAGER_RUNNING, then we might have won the race against
nfs4_schedule_state_manager(), and are responsible for handling the
recovery situation.

Fixes: aeabb3c9 ("NFSv4: Fix a NFSv4 state manager deadlock")
Signed-off-by: default avatarTrond Myklebust <trond.myklebust@hammerspace.com>
Signed-off-by: default avatarAnna Schumaker <Anna.Schumaker@Netapp.com>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarsanglipeng <sanglipeng1@jd.com>
parent d6e48023
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment