]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
NFS: Shut down the nfs_client only after all the superblocks
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Tue, 25 Mar 2025 21:58:50 +0000 (17:58 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 10 Apr 2025 12:39:26 +0000 (14:39 +0200)
commit81270dd79606366f32d2d4a4aee9cba08f8181bb
tree3147830ec66b5be1dcf42376c6a0b654311b4a86
parentcd80277f652138d2619f149f86ae6d17bce721d1
NFS: Shut down the nfs_client only after all the superblocks

[ Upstream commit 2d3e998a0bc7fe26a724f87a8ce217848040520e ]

The nfs_client manages state for all the superblocks in the
"cl_superblocks" list, so it must not be shut down until all of them are
gone.

Fixes: 7d3e26a054c8 ("NFS: Cancel all existing RPC tasks when shutdown")
Reviewed-by: Benjamin Coddington <bcodding@redhat.com>
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/nfs/sysfs.c