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)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Tue, 6 Dec 2022 18:03:46 +0000 (13:03 -0500)
commitb4e4f66901658fae0614dea5bf91062a5387eda7
treeb562c88b1a6be4cadc87d233c48a4af2274128ae
parent19cdc8fa5b9b768f5753eefe3da32fcbafcb0d18
NFSv4.x: Fail client initialisation if state manager thread can't run

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>
fs/nfs/nfs4state.c