Re: [PATCH net v3 03/10] rxrpc: Fix carrying of in-flight calc over retransmission

From: netdev-bot+sashiko

Date: Fri Nov 27 2026 - 05:14:03 EST


Thank you for your contribution! Sashiko AI review found more severe
issue(s) in other patches of this series. This mail is only an FYI, in case
you want to address the nit picks below when you respin.

Low priority / nit picks for your consideration:

- [Low] The commit message for "rxrpc: Fix carrying of in-flight calc
over retransmission" explains the mechanism: in_flight was computed at…

--

rxrpc: Fix carrying of in-flight calc over retransmission

In rxrpc_tlp_send_probe(), this commit moves the rxrpc_tx_in_flight()
calculation to the point where the value is used. The value then reflects
any (re-)transmission done by the TLP probe. Before this patch it was only
refreshed after new data was sent, and not after the rxrpc_resend_tlp()
retransmit path.

Link: https://netdev-ai.bots.linux.dev/sashiko/#/patchset/20261020201258.290827-1-dhowells%40redhat.com

> rxrpc_tlp_send_probe() calculates the in_flight value at the top of the
> function and then doesn't use it till the bottom of the function - after it
> may have done (re-)transmission, which would change the value (though it is
> recalculated in one place).
>
> Fix this by calculating that value at the point it is needed.

[Severity: Low]
This isn't a bug, but could the commit message also say what goes wrong
because of the stale value? The patch is Cc'd to stable, and backporters
would find the user-visible impact useful.

In rxrpc_rack_timer_expired(), the timer mode is cleared before the probe
is sent:

net/rxrpc/input_rack.c:rxrpc_rack_timer_expired() {
...
call->rack_timer_mode = RXRPC_CALL_RACKTIMER_OFF;

switch (mode) {
...
case RXRPC_CALL_RACKTIMER_TLP_PTO:
rxrpc_tlp_send_probe(call);
break;
...
}

In the retransmit branch of rxrpc_tlp_send_probe(), the call to
rxrpc_resend_tlp() increments tx_nr_resent and may decrement tx_nr_lost.
Both raise rxrpc_tx_in_flight(), but that branch never refreshed
in_flight.

Suppose in_flight was 0 on entry: every outstanding segment had been
SACKed or marked lost, but acks_hard_ack was still before tx_transmitted.
After the retransmission, the old code then skipped this block:

if (in_flight != 0) {
ktime_t rto = rxrpc_get_rto_backoff(call, false);

call->rack_timer_mode = RXRPC_CALL_RACKTIMER_RTO;

That left the RACK timer at RXRPC_CALL_RACKTIMER_OFF with no RTO armed
behind the probe.

Could the message add something like "no RTO was armed after a TLP
retransmission, so the call could stall until another timer fired or an
ACK arrived"?

--
Sashiko AI review · https://netdev-ai.bots.linux.dev/sashiko/#/patchset/20261124161302.4044422-1-dhowells%40redhat.com