]> git.karo-electronics.de Git - karo-tx-linux.git/commit
nfsd: Update callback sequnce id only CB_SEQUENCE success
authorKinglong Mee <kinglongmee@gmail.com>
Tue, 2 Jun 2015 10:59:25 +0000 (18:59 +0800)
committerJ. Bruce Fields <bfields@redhat.com>
Thu, 4 Jun 2015 20:51:30 +0000 (16:51 -0400)
commit276f03e3ba242ebf2cf201cc3c7058d2884912b7
tree882bd87a72e38396f21739bf8196ebbf3ef521b3
parent4399396eecfc586a1d92e64fe49c3c899f080436
nfsd: Update callback sequnce id only 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: J. Bruce Fields <bfields@redhat.com>
fs/nfsd/nfs4callback.c
fs/nfsd/state.h