nfsd: allow open state ids to be revoked and then freed
authorNeilBrown <neilb@suse.de>
Tue, 30 Jan 2024 01:08:31 +0000 (12:08 +1100)
committerChuck Lever <chuck.lever@oracle.com>
Fri, 1 Mar 2024 14:12:21 +0000 (09:12 -0500)
commit39657c740644e1468cfd2129f43d0ae08bd53531
treeed7cd50e0711e4ea79243699a2801b9c42a5d304
parent1c13bf9f2e3cd5a59ef988c6c5a49fe0f02bcdfc
nfsd: allow open state ids to be revoked and then freed

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

Possibly the related lock states should be revoked too, but a
subsequent patch will do that for all lock state on the superblock.

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