]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
NFSv4: Fix a state manager thread deadlock regression
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Sun, 24 Sep 2023 17:14:15 +0000 (13:14 -0400)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Wed, 27 Sep 2023 19:16:40 +0000 (15:16 -0400)
commit956fd46f97d238032cb5fa4771cdaccc6e760f9a
treec56427cde808145dc3a3d6b796897c9c8721e0b6
parented1cc05aa1f7fe8197d300e914afc28ab9818f89
NFSv4: Fix a state manager thread deadlock regression

Commit 4dc73c679114 reintroduces the deadlock that was fixed by commit
aeabb3c96186 ("NFSv4: Fix a NFSv4 state manager deadlock") because it
prevents the setup of new threads to handle reboot recovery, while the
older recovery thread is stuck returning delegations.

Fixes: 4dc73c679114 ("NFSv4: keep state manager thread active if swap is enabled")
Cc: stable@vger.kernel.org
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
fs/nfs/nfs4proc.c
fs/nfs/nfs4state.c