mirror of
https://github.com/torvalds/linux.git
synced 2026-06-07 14:04:54 +02:00
NFSv4.1: Don't decrease the value of seq_nr_highest_sent
commitf07a5d2427upstream. When we're trying to figure out what the server may or may not have seen in terms of request numbers, do not assume that requests with a larger number were missed, just because we saw a reply to a request with a smaller number. Fixes:3453d5708b("NFSv4.1: Avoid false retries when RPC calls are interrupted") Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
a408f135c4
commit
a351a73d90
|
|
@ -790,10 +790,9 @@ static void nfs4_slot_sequence_record_sent(struct nfs4_slot *slot,
|
||||||
if ((s32)(seqnr - slot->seq_nr_highest_sent) > 0)
|
if ((s32)(seqnr - slot->seq_nr_highest_sent) > 0)
|
||||||
slot->seq_nr_highest_sent = seqnr;
|
slot->seq_nr_highest_sent = seqnr;
|
||||||
}
|
}
|
||||||
static void nfs4_slot_sequence_acked(struct nfs4_slot *slot,
|
static void nfs4_slot_sequence_acked(struct nfs4_slot *slot, u32 seqnr)
|
||||||
u32 seqnr)
|
|
||||||
{
|
{
|
||||||
slot->seq_nr_highest_sent = seqnr;
|
nfs4_slot_sequence_record_sent(slot, seqnr);
|
||||||
slot->seq_nr_last_acked = seqnr;
|
slot->seq_nr_last_acked = seqnr;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user