mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-11 01:53:20 -04:00
nfsd: when CB_SEQUENCE gets ESERVERFAULT don't increment seq_nr
ESERVERFAULT means that the server sent a successful and legitimate reply, but the session info didn't match what was expected. Don't increment the seq_nr in that case. Signed-off-by: Jeff Layton <jlayton@kernel.org> Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
This commit is contained in:
@@ -1363,7 +1363,12 @@ static bool nfsd4_cb_sequence_done(struct rpc_task *task, struct nfsd4_callback
|
||||
ret = true;
|
||||
break;
|
||||
case -ESERVERFAULT:
|
||||
++session->se_cb_seq_nr[cb->cb_held_slot];
|
||||
/*
|
||||
* Call succeeded, but the session, slot index, or slot
|
||||
* sequence number in the response do not match the same
|
||||
* in the server's call. The sequence information is thus
|
||||
* untrustworthy.
|
||||
*/
|
||||
nfsd4_mark_cb_fault(cb->cb_clp);
|
||||
break;
|
||||
case 1:
|
||||
|
||||
Reference in New Issue
Block a user