]> 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:37:35 +0000 (14:37 +0200)
commitd7ca0969bf876a1489d3cd3a7ddf771708d886a9
treeb2c431455b7cfdc67fa029c3c9f4dc83d15b1eb5
parent75b42dfe87657ede3da3f279bd6b1b16d69af954
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