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>
Sat, 31 Dec 2022 12:32:23 +0000 (13:32 +0100)
commit86c1f5d5f49847f3023d57e9865efac7192c4b5d
tree1ae7bc46ef5a931424d1b0b87c3fd258822571eb
parenta89715bc95233a31441c0474daabba1d5d36c016
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: 4697bd5e9419 ("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