Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 267144
b: refs/heads/master
c: 68b66e8
h: refs/heads/master
v: v3
  • Loading branch information
J. Bruce Fields committed Sep 3, 2011
1 parent cd53623 commit 16d1c1e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 77eaae8d44ec5942033b751d0e0d2914c9411862
refs/heads/master: 68b66e8270f44d297a48662e6aed72c5944f77bd
12 changes: 5 additions & 7 deletions trunk/fs/nfsd/nfs4state.c
Original file line number Diff line number Diff line change
Expand Up @@ -3434,11 +3434,6 @@ nfs4_preprocess_seqid_op(struct nfsd4_compound_state *cstate, u32 seqid,
if (status)
return status;

if (sop->so_confirmed && flags & CONFIRM) {
dprintk("NFSD: preprocess_seqid_op: expected"
" unconfirmed stateowner!\n");
return nfserr_bad_stateid;
}
if (!sop->so_confirmed && !(flags & CONFIRM)) {
dprintk("NFSD: preprocess_seqid_op: stateowner not"
" confirmed yet!\n");
Expand Down Expand Up @@ -3473,16 +3468,19 @@ nfsd4_open_confirm(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate,
oc->oc_seqid, &oc->oc_req_stateid,
CONFIRM | OPEN_STATE, &stp);
if (status)
goto out;

goto out;
sop = stp->st_stateowner;
status = nfserr_bad_stateid;
if (sop->so_confirmed)
goto out;
sop->so_confirmed = 1;
update_stateid(&stp->st_stateid);
memcpy(&oc->oc_resp_stateid, &stp->st_stateid, sizeof(stateid_t));
dprintk("NFSD: %s: success, seqid=%d stateid=" STATEID_FMT "\n",
__func__, oc->oc_seqid, STATEID_VAL(&stp->st_stateid));

nfsd4_create_clid_dir(sop->so_client);
status = nfs_ok;
out:
if (!cstate->replay_owner)
nfs4_unlock_state();
Expand Down

0 comments on commit 16d1c1e

Please sign in to comment.