Re: [PATCH net v2 2/6] net/smc: do not credit stale CDC completions after a link switch

From: Bryam Vargas

Date: Thu Dec 03 2026 - 04:18:08 EST


On 01/12/26 2:30 pm, Sidraya Jayagond wrote:
> smc_sendmsg() still accepts sends in SMC_APPCLOSEWAIT1 (the peer did
> shutdown(SHUT_WR) and still reads). RDMA writes queued on the failed
> link complete as flushed. Your change correctly does not credit them,
> but nothing sends them again either.
[...]
> I don't think this needs to hold up the series, but should the
> closing states that can still have data in flight (at least
> SMC_APPCLOSEWAIT1) go through smc_switch_cursor() as well?
[...]

I read it the same way: smc_switch_conns() only moves a connection in
SMC_APPCLOSEWAIT1 to the new link. I have not run that case.

I think SMC_APPCLOSEWAIT1 should. I have not checked which of the
other closing states can still have writes in flight. v3 does not
change this; it is under "Not fixed here" in the cover:
https://lore.kernel.org/all/20261203-b4-disp-ba1ad55e-v3-0-6834ff90c5d0@xxxxxxxxx/

Thanks,
Bryam