commit | 24ffb93872f7363a01ad639e3c8a9889b46c3f0a | [log] [tgz] |
---|---|---|
author | J. Bruce Fields <bfields@redhat.com> | Wed Dec 12 15:24:12 2012 -0500 |
committer | J. Bruce Fields <bfields@redhat.com> | Mon Dec 17 22:00:28 2012 -0500 |
tree | ad6e3f199736a84276da2649fca0e8bdce7ffc15 | |
parent | a1dc6955829f20ad80c1d6a411ecbcf538bb1410 [diff] |
nfsd4: don't leave freed stateid hashed Note the stateid is hashed early on in init_stid(), but isn't currently being unhashed on error paths. Signed-off-by: J. Bruce Fields <bfields@redhat.com>
diff --git a/fs/nfsd/nfs4state.c b/fs/nfsd/nfs4state.c index 8e127b3..ac8ed96 100644 --- a/fs/nfsd/nfs4state.c +++ b/fs/nfsd/nfs4state.c
@@ -2983,6 +2983,7 @@ } return; out_free: + unhash_stid(&dp->dl_stid); nfs4_put_delegation(dp); out_no_deleg: flag = NFS4_OPEN_DELEGATE_NONE;