]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit081539128a96fd085925ec2918694dc4c3629b46
treedaf249d4134ed0ad095982e5cc83cda4e1c98994
parent42819c2ba361ffb7877ad578a9533b303f748a8a
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