Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 267138
b: refs/heads/master
c: 5ec094c
h: refs/heads/master
v: v3
  • Loading branch information
J. Bruce Fields committed Sep 1, 2011
1 parent 2431f96 commit 88cf6bb
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 7 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: 9072d5c66b17292e3cd055bc8057b2ce6af2fe34
refs/heads/master: 5ec094c1096ab3bb795651855d53f18daa26afde
5 changes: 3 additions & 2 deletions trunk/fs/nfsd/nfs4proc.c
Original file line number Diff line number Diff line change
Expand Up @@ -408,8 +408,8 @@ nfsd4_open(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate,
if (open->op_stateowner) {
nfs4_get_stateowner(open->op_stateowner);
cstate->replay_owner = open->op_stateowner;
}
nfs4_unlock_state();
} else
nfs4_unlock_state();
return status;
}

Expand Down Expand Up @@ -1227,6 +1227,7 @@ nfsd4_proc_compound(struct svc_rqst *rqstp,
be32_to_cpu(status));

if (cstate->replay_owner) {
nfs4_unlock_state();
nfs4_put_stateowner(cstate->replay_owner);
cstate->replay_owner = NULL;
}
Expand Down
12 changes: 8 additions & 4 deletions trunk/fs/nfsd/nfs4state.c
Original file line number Diff line number Diff line change
Expand Up @@ -3501,7 +3501,8 @@ nfsd4_open_confirm(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate,

nfsd4_create_clid_dir(sop->so_client);
out:
nfs4_unlock_state();
if (!cstate->replay_owner)
nfs4_unlock_state();
return status;
}

Expand Down Expand Up @@ -3568,7 +3569,8 @@ nfsd4_open_downgrade(struct svc_rqst *rqstp,
memcpy(&od->od_stateid, &stp->st_stateid, sizeof(stateid_t));
status = nfs_ok;
out:
nfs4_unlock_state();
if (!cstate->replay_owner)
nfs4_unlock_state();
return status;
}

Expand Down Expand Up @@ -3609,7 +3611,8 @@ nfsd4_close(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate,
if (list_empty(&so->so_stateids))
move_to_close_lru(so);
out:
nfs4_unlock_state();
if (!cstate->replay_owner)
nfs4_unlock_state();
return status;
}

Expand Down Expand Up @@ -4071,7 +4074,8 @@ nfsd4_lock(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate,
out:
if (status && lock->lk_is_new && lock_sop)
release_lockowner(lock_sop);
nfs4_unlock_state();
if (!cstate->replay_owner)
nfs4_unlock_state();
return status;
}

Expand Down

0 comments on commit 88cf6bb

Please sign in to comment.