diff options
author | Benny Halevy <bhalevy@primarydata.com> | 2013-10-14 09:01:55 +0300 |
---|---|---|
committer | J. Bruce Fields <bfields@redhat.com> | 2013-10-29 10:03:27 -0400 |
commit | 01a87d91fcecced2e2bdcd797794b4ede1f64b77 (patch) | |
tree | 57fb22fa650d039308aa69a7a6fa5453187b90e6 /fs | |
parent | 7ebe40f20372688a627ad6c754bc0d1c05df58a9 (diff) | |
download | talos-obmc-linux-01a87d91fcecced2e2bdcd797794b4ede1f64b77.tar.gz talos-obmc-linux-01a87d91fcecced2e2bdcd797794b4ede1f64b77.zip |
nfsd: no need to unhash_stid before free
idr_remove is about to be called before kmem_cache_free so unhashing it
is redundant
Signed-off-by: Benny Halevy <bhalevy@primarydata.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/nfsd/nfs4state.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/fs/nfsd/nfs4state.c b/fs/nfsd/nfs4state.c index 77dfc5a6a011..a90949aefe80 100644 --- a/fs/nfsd/nfs4state.c +++ b/fs/nfsd/nfs4state.c @@ -672,7 +672,6 @@ static void unhash_open_stateid(struct nfs4_ol_stateid *stp) static void release_open_stateid(struct nfs4_ol_stateid *stp) { unhash_open_stateid(stp); - unhash_stid(&stp->st_stid); free_generic_stateid(stp); } @@ -694,7 +693,6 @@ static void release_last_closed_stateid(struct nfs4_openowner *oo) struct nfs4_ol_stateid *s = oo->oo_last_closed_stid; if (s) { - unhash_stid(&s->st_stid); free_generic_stateid(s); oo->oo_last_closed_stid = NULL; } @@ -3998,10 +3996,9 @@ nfsd4_close(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, nfsd4_close_open_stateid(stp); - if (cstate->minorversion) { - unhash_stid(&stp->st_stid); + if (cstate->minorversion) free_generic_stateid(stp); - } else + else oo->oo_last_closed_stid = stp; if (list_empty(&oo->oo_owner.so_stateids)) { |