aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTrond Myklebust <trond.myklebust@primarydata.com>2014-07-30 08:27:31 -0400
committerJ. Bruce Fields <bfields@redhat.com>2014-08-05 10:55:16 -0400
commit3234975f477f746c22d076ea178a79ea104b2ca7 (patch)
treead3958528b60d1eabe2bf04a9db38fff672278a3
parent084d4d4549d88f7a27f455f9fe8a03fd9842f5ba (diff)
nfsd: Remove nfs4_lock_state(): nfsd4_open and nfsd4_open_confirm
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com> Signed-off-by: J. Bruce Fields <bfields@redhat.com>
-rw-r--r--fs/nfsd/nfs4proc.c3
-rw-r--r--fs/nfsd/nfs4state.c6
2 files changed, 0 insertions, 9 deletions
diff --git a/fs/nfsd/nfs4proc.c b/fs/nfsd/nfs4proc.c
index 29cf395b694e..5e0dc528a0e8 100644
--- a/fs/nfsd/nfs4proc.c
+++ b/fs/nfsd/nfs4proc.c
@@ -385,8 +385,6 @@ nfsd4_open(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate,
385 if (nfsd4_has_session(cstate)) 385 if (nfsd4_has_session(cstate))
386 copy_clientid(&open->op_clientid, cstate->session); 386 copy_clientid(&open->op_clientid, cstate->session);
387 387
388 nfs4_lock_state();
389
390 /* check seqid for replay. set nfs4_owner */ 388 /* check seqid for replay. set nfs4_owner */
391 resp = rqstp->rq_resp; 389 resp = rqstp->rq_resp;
392 status = nfsd4_process_open1(&resp->cstate, open, nn); 390 status = nfsd4_process_open1(&resp->cstate, open, nn);
@@ -471,7 +469,6 @@ out:
471 } 469 }
472 nfsd4_cleanup_open_state(cstate, open, status); 470 nfsd4_cleanup_open_state(cstate, open, status);
473 nfsd4_bump_seqid(cstate, status); 471 nfsd4_bump_seqid(cstate, status);
474 nfs4_unlock_state();
475 return status; 472 return status;
476} 473}
477 474
diff --git a/fs/nfsd/nfs4state.c b/fs/nfsd/nfs4state.c
index 733e653e67b8..5b3452a00cb2 100644
--- a/fs/nfsd/nfs4state.c
+++ b/fs/nfsd/nfs4state.c
@@ -4007,9 +4007,6 @@ static void nfsd4_deleg_xgrade_none_ext(struct nfsd4_open *open,
4007 */ 4007 */
4008} 4008}
4009 4009
4010/*
4011 * called with nfs4_lock_state() held.
4012 */
4013__be32 4010__be32
4014nfsd4_process_open2(struct svc_rqst *rqstp, struct svc_fh *current_fh, struct nfsd4_open *open) 4011nfsd4_process_open2(struct svc_rqst *rqstp, struct svc_fh *current_fh, struct nfsd4_open *open)
4015{ 4012{
@@ -4690,8 +4687,6 @@ nfsd4_open_confirm(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate,
4690 if (status) 4687 if (status)
4691 return status; 4688 return status;
4692 4689
4693 nfs4_lock_state();
4694
4695 status = nfs4_preprocess_seqid_op(cstate, 4690 status = nfs4_preprocess_seqid_op(cstate,
4696 oc->oc_seqid, &oc->oc_req_stateid, 4691 oc->oc_seqid, &oc->oc_req_stateid,
4697 NFS4_OPEN_STID, &stp, nn); 4692 NFS4_OPEN_STID, &stp, nn);
@@ -4785,7 +4780,6 @@ put_stateid:
4785 nfs4_put_stid(&stp->st_stid); 4780 nfs4_put_stid(&stp->st_stid);
4786out: 4781out:
4787 nfsd4_bump_seqid(cstate, status); 4782 nfsd4_bump_seqid(cstate, status);
4788 nfs4_unlock_state();
4789 return status; 4783 return status;
4790} 4784}
4791 4785