]> git.baikalelectronics.ru Git - kernel.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)
commit82dc1d9fe6de8a0d6f872fefb138623a1d7720d7
tree882bd87a72e38396f21739bf8196ebbf3ef521b3
parentebe046c813c91d9bbacab869e12ae75611df1fdc
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