diff options
author | Trond Myklebust <trond.myklebust@primarydata.com> | 2014-07-30 08:27:25 -0400 |
---|---|---|
committer | J. Bruce Fields <bfields@redhat.com> | 2014-08-05 10:55:11 -0400 |
commit | c2d1d6a8f096ffbd3bde2490d313d16f35ceaa1b (patch) | |
tree | cf53a3d1d3b4dbde7223c9944325d5a56ffa4e24 /fs/nfsd/nfs4state.c | |
parent | 285abdee5335921b6a41f9719c1fc56c478ac561 (diff) |
nfsd: Remove nfs4_lock_state(): nfs4_preprocess_stateid_op()
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'fs/nfsd/nfs4state.c')
-rw-r--r-- | fs/nfsd/nfs4state.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/fs/nfsd/nfs4state.c b/fs/nfsd/nfs4state.c index 90aa953420b6..3199ab50d63c 100644 --- a/fs/nfsd/nfs4state.c +++ b/fs/nfsd/nfs4state.c | |||
@@ -4465,13 +4465,11 @@ nfs4_preprocess_stateid_op(struct net *net, struct nfsd4_compound_state *cstate, | |||
4465 | if (ZERO_STATEID(stateid) || ONE_STATEID(stateid)) | 4465 | if (ZERO_STATEID(stateid) || ONE_STATEID(stateid)) |
4466 | return check_special_stateids(net, current_fh, stateid, flags); | 4466 | return check_special_stateids(net, current_fh, stateid, flags); |
4467 | 4467 | ||
4468 | nfs4_lock_state(); | ||
4469 | |||
4470 | status = nfsd4_lookup_stateid(cstate, stateid, | 4468 | status = nfsd4_lookup_stateid(cstate, stateid, |
4471 | NFS4_DELEG_STID|NFS4_OPEN_STID|NFS4_LOCK_STID, | 4469 | NFS4_DELEG_STID|NFS4_OPEN_STID|NFS4_LOCK_STID, |
4472 | &s, nn); | 4470 | &s, nn); |
4473 | if (status) | 4471 | if (status) |
4474 | goto unlock_state; | 4472 | return status; |
4475 | status = check_stateid_generation(stateid, &s->sc_stateid, nfsd4_has_session(cstate)); | 4473 | status = check_stateid_generation(stateid, &s->sc_stateid, nfsd4_has_session(cstate)); |
4476 | if (status) | 4474 | if (status) |
4477 | goto out; | 4475 | goto out; |
@@ -4521,8 +4519,6 @@ nfs4_preprocess_stateid_op(struct net *net, struct nfsd4_compound_state *cstate, | |||
4521 | *filpp = file; | 4519 | *filpp = file; |
4522 | out: | 4520 | out: |
4523 | nfs4_put_stid(s); | 4521 | nfs4_put_stid(s); |
4524 | unlock_state: | ||
4525 | nfs4_unlock_state(); | ||
4526 | return status; | 4522 | return status; |
4527 | } | 4523 | } |
4528 | 4524 | ||