From: Dust Li <dust.li@linux.alibaba.com>
To: Andrew Stellman <bugs@stellman-greene.com>,
Mahanta Jambigi <mjambigi@linux.ibm.com>,
"D. Wythe" <alibuda@linux.alibaba.com>,
Sidraya Jayagond <sidraya@linux.ibm.com>
Cc: Tony Lu <tonylu@linux.alibaba.com>,
Wen Gu <guwen@linux.alibaba.com>,
"David S. Miller" <davem@davemloft.net>,
Eric Dumazet <edumazet@kernel.org>,
Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
Simon Horman <horms@kernel.org>,
Willem de Bruijn <willemb@google.com>,
linux-rdma@vger.kernel.org, linux-s390@vger.kernel.org,
netdev@vger.kernel.org
Subject: Re: [PATCH net] net/smc: cap ADD LINK v2 rkeys to the receive limit
Date: Wed, 2 Dec 2026 09:31:09 +0800 [thread overview]
Message-ID: <aw903Y4iowWYuz9G@linux.alibaba.com> (raw)
In-Reply-To: <20261201213155.65668-1-bugs@stellman-greene.com>
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
prev parent reply other threads:[~2026-12-02 1:31 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-28 19:17 [PATCH net] net/smc: cap ADD LINK v2 rkeys to the receive limit Andrew Stellman
2026-11-30 2:22 ` Dust Li
2026-11-30 13:15 ` Andrew Stellman
2026-12-01 9:15 ` Mahanta Jambigi
2026-12-01 21:31 ` Andrew Stellman
2026-12-02 1:31 ` Dust Li [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=aw903Y4iowWYuz9G@linux.alibaba.com \
--to=dust.li@linux.alibaba.com \
--cc=alibuda@linux.alibaba.com \
--cc=bugs@stellman-greene.com \
--cc=davem@davemloft.net \
--cc=edumazet@kernel.org \
--cc=guwen@linux.alibaba.com \
--cc=horms@kernel.org \
--cc=kuba@kernel.org \
--cc=linux-rdma@vger.kernel.org \
--cc=linux-s390@vger.kernel.org \
--cc=mjambigi@linux.ibm.com \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=sidraya@linux.ibm.com \
--cc=tonylu@linux.alibaba.com \
--cc=willemb@google.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox