]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
nfsd4: Fix forced-expiry locking
authorJ. Bruce Fields <bfields@redhat.com>
Thu, 12 Aug 2021 20:41:43 +0000 (16:41 -0400)
committerStefan Bader <stefan.bader@canonical.com>
Fri, 15 Oct 2021 09:27:14 +0000 (11:27 +0200)
commitacf221d1c081af197ddb210b0f988f9b8a167ea5
tree82ff552fb0aff7170f1d32b44e936bfa97ac2f7a
parenteaf224ac567d04043786f9b3b448b98c56419b19
nfsd4: Fix forced-expiry locking

BugLink: https://bugs.launchpad.net/bugs/1946788
[ Upstream commit f7104cc1a9159cd0d3e8526cb638ae0301de4b61 ]

This should use the network-namespace-wide client_lock, not the
per-client cl_lock.

You shouldn't see any bugs unless you're actually using the
forced-expiry interface introduced by 89c905beccbb.

Fixes: 89c905beccbb "nfsd: allow forced expiration of NFSv4 clients"
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Kelsey Skunberg <kelsey.skunberg@canonical.com>
fs/nfsd/nfs4state.c