Skip to content

Commit

Permalink
NFSv4.1: Don't decrease the value of seq_nr_highest_sent
Browse files Browse the repository at this point in the history
commit f07a5d2 upstream.

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: 3453d57 ("NFSv4.1: Avoid false retries when RPC calls are interrupted")
Signed-off-by: Trond Myklebust <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
  • Loading branch information
Trond Myklebust authored and gregkh committed Aug 25, 2022
1 parent 6aea903 commit 0696115
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions fs/nfs/nfs4proc.c
Original file line number Diff line number Diff line change
Expand Up @@ -787,10 +787,9 @@ static void nfs4_slot_sequence_record_sent(struct nfs4_slot *slot,
if ((s32)(seqnr - slot->seq_nr_highest_sent) > 0)
slot->seq_nr_highest_sent = seqnr;
}
static void nfs4_slot_sequence_acked(struct nfs4_slot *slot,
u32 seqnr)
static void nfs4_slot_sequence_acked(struct nfs4_slot *slot, u32 seqnr)
{
slot->seq_nr_highest_sent = seqnr;
nfs4_slot_sequence_record_sent(slot, seqnr);
slot->seq_nr_last_acked = seqnr;
}

Expand Down

0 comments on commit 0696115

Please sign in to comment.