On 2026-12-01 16:31:55, Andrew Stellman wrote:
>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?
IIUC, that looks like a potential issue that can never be triggered in the current Linux code? If so, I don't think it's necessary to add the bound here. I think it makes more sense to focus on reachable issues first, such as a client violating the protocol and sending invalid CLC messages to the server. Best regards, Dust