Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 346633
b: refs/heads/master
c: e879444
h: refs/heads/master
i:
  346631: 5e16bd3
v: v3
  • Loading branch information
Trond Myklebust authored and Trond Myklebust committed Dec 15, 2012
1 parent 4dd8c51 commit 3d88514
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 6 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: 65a0c14954493802de01968a73b849f9fc4b4d1a
refs/heads/master: e8794440849d1d15fa11251ef1622e6160614874
24 changes: 19 additions & 5 deletions trunk/fs/nfs/nfs4proc.c
Original file line number Diff line number Diff line change
Expand Up @@ -467,11 +467,19 @@ static int nfs41_sequence_done(struct rpc_task *task, struct nfs4_sequence_res *
* The slot id we used was probably retired. Try again
* using a different slot id.
*/
if (rpc_restart_call_prepare(task)) {
task->tk_status = 0;
ret = 0;
}
break;
goto retry_nowait;
case -NFS4ERR_SEQ_MISORDERED:
/*
* Could this slot have been previously retired?
* If so, then the server may be expecting seq_nr = 1!
*/
if (slot->seq_nr == 1)
break;
slot->seq_nr = 1;
goto retry_nowait;
case -NFS4ERR_SEQ_FALSE_RETRY:
++slot->seq_nr;
goto retry_nowait;
default:
/* Just update the slot sequence no. */
++slot->seq_nr;
Expand All @@ -481,6 +489,12 @@ static int nfs41_sequence_done(struct rpc_task *task, struct nfs4_sequence_res *
dprintk("%s: Error %d free the slot \n", __func__, res->sr_status);
nfs41_sequence_free_slot(res);
return ret;
retry_nowait:
if (rpc_restart_call_prepare(task)) {
task->tk_status = 0;
ret = 0;
}
goto out;
out_retry:
if (!rpc_restart_call(task))
goto out;
Expand Down

0 comments on commit 3d88514

Please sign in to comment.