]> git.baikalelectronics.ru Git - 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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 15 Sep 2021 07:47:35 +0000 (09:47 +0200)
commit9d88a3ffa75e8d8412f662301721ffc4228a6dd5
treece451c080df67b520650cc08cbd17fd300a5aa6a
parent89dcf2490223884fcb1fee39018f111d93b69589
nfsd4: Fix forced-expiry locking

[ 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 370530e178e0.

Fixes: 370530e178e0 "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>
fs/nfsd/nfs4state.c