diff options
author | Trond Myklebust <trond.myklebust@primarydata.com> | 2016-01-23 17:15:37 -0500 |
---|---|---|
committer | Trond Myklebust <trond.myklebust@primarydata.com> | 2016-01-24 17:12:48 -0500 |
commit | f74a834a0e1b35e39e917a1a88a62817610ee20b (patch) | |
tree | 2500d98602d8121263f21711c92c5c6d00c9f909 /fs/nfs/callback_proc.c | |
parent | f4f58ed19b9ee303985f47352f795631a979294c (diff) |
NFSv4.x: CB_SEQUENCE should return NFS4ERR_DELAY if still executing
See RFC5661 Section 2.10.6.2: if retrying a request, and the old one is
still in progress, we must return NFS4ERR_DELAY as the reply to sequence.
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
Diffstat (limited to 'fs/nfs/callback_proc.c')
-rw-r--r-- | fs/nfs/callback_proc.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/nfs/callback_proc.c b/fs/nfs/callback_proc.c index 83a66a8f40f2..e0844fdbd9ac 100644 --- a/fs/nfs/callback_proc.c +++ b/fs/nfs/callback_proc.c | |||
@@ -375,6 +375,8 @@ validate_seqid(struct nfs4_slot_table *tbl, struct cb_sequenceargs * args) | |||
375 | if (args->csa_sequenceid == slot->seq_nr) { | 375 | if (args->csa_sequenceid == slot->seq_nr) { |
376 | dprintk("%s seqid %u is a replay\n", | 376 | dprintk("%s seqid %u is a replay\n", |
377 | __func__, args->csa_sequenceid); | 377 | __func__, args->csa_sequenceid); |
378 | if (tbl->highest_used_slotid != NFS4_NO_SLOT) | ||
379 | return htonl(NFS4ERR_DELAY); | ||
378 | /* Signal process_op to set this error on next op */ | 380 | /* Signal process_op to set this error on next op */ |
379 | if (args->csa_cachethis == 0) | 381 | if (args->csa_cachethis == 0) |
380 | return htonl(NFS4ERR_RETRY_UNCACHED_REP); | 382 | return htonl(NFS4ERR_RETRY_UNCACHED_REP); |