aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--fs/nfs/nfs4proc.c24
1 files changed, 19 insertions, 5 deletions
diff --git a/fs/nfs/nfs4proc.c b/fs/nfs/nfs4proc.c
index b0963aeceeda..9003b8f6b77f 100644
--- a/fs/nfs/nfs4proc.c
+++ b/fs/nfs/nfs4proc.c
@@ -467,11 +467,19 @@ static int nfs41_sequence_done(struct rpc_task *task, struct nfs4_sequence_res *
467 * The slot id we used was probably retired. Try again 467 * The slot id we used was probably retired. Try again
468 * using a different slot id. 468 * using a different slot id.
469 */ 469 */
470 if (rpc_restart_call_prepare(task)) { 470 goto retry_nowait;
471 task->tk_status = 0; 471 case -NFS4ERR_SEQ_MISORDERED:
472 ret = 0; 472 /*
473 } 473 * Could this slot have been previously retired?
474 break; 474 * If so, then the server may be expecting seq_nr = 1!
475 */
476 if (slot->seq_nr == 1)
477 break;
478 slot->seq_nr = 1;
479 goto retry_nowait;
480 case -NFS4ERR_SEQ_FALSE_RETRY:
481 ++slot->seq_nr;
482 goto retry_nowait;
475 default: 483 default:
476 /* Just update the slot sequence no. */ 484 /* Just update the slot sequence no. */
477 ++slot->seq_nr; 485 ++slot->seq_nr;
@@ -481,6 +489,12 @@ out:
481 dprintk("%s: Error %d free the slot \n", __func__, res->sr_status); 489 dprintk("%s: Error %d free the slot \n", __func__, res->sr_status);
482 nfs41_sequence_free_slot(res); 490 nfs41_sequence_free_slot(res);
483 return ret; 491 return ret;
492retry_nowait:
493 if (rpc_restart_call_prepare(task)) {
494 task->tk_status = 0;
495 ret = 0;
496 }
497 goto out;
484out_retry: 498out_retry:
485 if (!rpc_restart_call(task)) 499 if (!rpc_restart_call(task))
486 goto out; 500 goto out;