nfs: Only update callback sequnce id when CB_SEQUENCE success
authorKinglong Mee <kinglongmee@gmail.com>
Tue, 2 Jun 2015 10:58:46 +0000 (18:58 +0800)
committerTrond Myklebust <trond.myklebust@primarydata.com>
Thu, 11 Jun 2015 18:00:40 +0000 (14:00 -0400)
commite937ee714b2df638275a61a99e0d033682f764d2
treedaf249d4134ed0ad095982e5cc83cda4e1c98994
parent8eee52af27b96047894bd18649102a0d2de3c3bb
nfs: Only update callback sequnce id when CB_SEQUENCE success

When testing pnfs layout, nfsd got error NFS4ERR_SEQ_MISORDERED.
It is caused by nfs return NFS4ERR_DELAY before validate_seqid(),
don't update the sequnce id, but nfsd updates the sequnce id !!!

According to RFC5661 20.9.3,
" If CB_SEQUENCE returns an error, then the state of the slot
  (sequence ID, cached reply) MUST NOT change. "

Signed-off-by: Kinglong Mee <kinglongmee@gmail.com>
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
fs/nfs/callback_proc.c