nfsd: allow delegation state ids to be revoked and then freed
authorNeilBrown <neilb@suse.de>
Tue, 30 Jan 2024 01:08:32 +0000 (12:08 +1100)
committerChuck Lever <chuck.lever@oracle.com>
Fri, 1 Mar 2024 14:12:22 +0000 (09:12 -0500)
commit06efa66750a68ccd79097b6b03361a0ba358d292
treeabbea323b32adb91b1b7c158bf4b1e1a968cc578
parent39657c740644e1468cfd2129f43d0ae08bd53531
nfsd: allow delegation state ids to be revoked and then freed

Revoking state through 'unlock_filesystem' now revokes any delegation
states found.  When the stateids are then freed by the client, the
revoked stateids will be cleaned up correctly.

As there is already support for revoking delegations, we build on that
for admin-revoking.

Reviewed-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: NeilBrown <neilb@suse.de>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
fs/nfsd/nfs4state.c