On Tue, Dec 01, 2026 at 02:45:27PM +0530, Mahanta Jambigi wrote:
> Would dropping role == SMC_CLNT be the *better fix*?
I tried it. On mainline (fe6ff8d5d675) in arm64 QEMU with KASAN,
lockdep and SoftRoCE, I opened 260 SMC-R connections from one client to
one server, held them, and then closed them.
Without any patch, both runs closed cleanly. With role == SMC_CLNT
dropped, the client hung in close() in both runs. The stacks show a
link-group termination worker waiting in smc_cdc_wait_pend_tx_wr()
while close() waits for the same socket lock in smc_release(). With 64
connections, both builds closed cleanly.
I haven't found why the CDC completion never comes, and I haven't run a
peer that reuses its QPN. Dust, as I said before, the 508 count came
from a test-only change inside the writer, not from real connections.
Given that, would you rather keep the cap in smc_llc_fill_ext_v2() as
sent, or should I keep looking into the hang with the client bound?
Andrew