nfsd: extra checks when freeing delegation stateids
authorJeff Layton <jlayton@kernel.org>
Mon, 26 Sep 2022 18:41:02 +0000 (14:41 -0400)
committerChuck Lever <chuck.lever@oracle.com>
Mon, 26 Sep 2022 18:50:58 +0000 (14:50 -0400)
commit895ddf5ed4c54ea9e3533606d7a8b4e4f27f95ef
tree9020ffab642722bfcf87a5ef1febc5658731c773
parentb95239ca4954a0d48b19c09ce7e8f31b453b4216
nfsd: extra checks when freeing delegation stateids

We've had some reports of problems in the refcounting for delegation
stateids that we've yet to track down. Add some extra checks to ensure
that we've removed the object from various lists before freeing it.

Link: https://bugzilla.redhat.com/show_bug.cgi?id=2127067
Signed-off-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
fs/nfsd/nfs4state.c