]> git.baikalelectronics.ru Git - kernel.git/commit
NFSv4.x: Fail client initialisation if state manager thread can't run
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Tue, 6 Dec 2022 17:42:59 +0000 (12:42 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 18 Jan 2023 10:41:10 +0000 (11:41 +0100)
commit50c37cc67e965bf1f96c41ac619acd3f39af22c4
tree7c01715105a7deca15c223b990504413d33892a9
parente5dd352c5578cce97280e87140c5b9fd56f7fa72
NFSv4.x: Fail client initialisation if state manager thread can't run

[ Upstream commit 3c5ea471887aa5858dae80b254315abe7da6a4da ]

If the state manager thread fails to start, then we should just mark the
client initialisation as failed so that other processes or threads don't
get stuck in nfs_wait_client_init_complete().

Reported-by: ChenXiaoSong <chenxiaosong2@huawei.com>
Fixes: e44afd73e720 ("NFSv4: Fix a race in the net namespace mount notification")
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/nfs/nfs4state.c