]> 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)
commitd088985525c03c0d13871ae696660aba813f6036
tree7c01715105a7deca15c223b990504413d33892a9
parentc1a98e5481918f8973b16c8d5bab4d10b0f5a276
NFSv4.x: Fail client initialisation if state manager thread can't run

[ Upstream commit b4e4f66901658fae0614dea5bf91062a5387eda7 ]

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: 3fa1450d64b2 ("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