Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 346621
b: refs/heads/master
c: 8556307
h: refs/heads/master
i:
  346619: 8a074ed
v: v3
  • Loading branch information
Trond Myklebust authored and Trond Myklebust committed Dec 11, 2012
1 parent 9e49eec commit 4884134
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 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: 7ce0171d4f78992184faed87ea897d730b972965
refs/heads/master: 85563073741bd7935a6900d567ddaf907192270d
13 changes: 12 additions & 1 deletion trunk/fs/nfs/nfs4proc.c
Original file line number Diff line number Diff line change
Expand Up @@ -422,6 +422,7 @@ static int nfs41_sequence_done(struct rpc_task *task, struct nfs4_sequence_res *
struct nfs4_slot *slot;
unsigned long timestamp;
struct nfs_client *clp;
int ret = 1;

/*
* sr_status remains 1 if an RPC level error occurred. The server
Expand Down Expand Up @@ -462,6 +463,16 @@ static int nfs41_sequence_done(struct rpc_task *task, struct nfs4_sequence_res *
slot->slot_nr,
slot->seq_nr);
goto out_retry;
case -NFS4ERR_BADSLOT:
/*
* 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;
default:
/* Just update the slot sequence no. */
++slot->seq_nr;
Expand All @@ -470,7 +481,7 @@ static int nfs41_sequence_done(struct rpc_task *task, struct nfs4_sequence_res *
/* The session may be reset by one of the error handlers. */
dprintk("%s: Error %d free the slot \n", __func__, res->sr_status);
nfs41_sequence_free_slot(res);
return 1;
return ret;
out_retry:
if (!rpc_restart_call(task))
goto out;
Expand Down

0 comments on commit 4884134

Please sign in to comment.