From: Andrew Stellman <bugs@stellman-greene.com>
To: Mahanta Jambigi <mjambigi@linux.ibm.com>,
"D. Wythe" <alibuda@linux.alibaba.com>,
Dust Li <dust.li@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: Tue, 1 Dec 2026 16:31:55 -0500 [thread overview]
Message-ID: <20261201213155.65668-1-bugs@stellman-greene.com> (raw)
In-Reply-To: <d4a8844e-9c1c-48c9-969c-f03696ace29a@linux.ibm.com>
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
next prev parent reply other threads:[~2026-12-01 21: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 [this message]
2026-12-02 1:31 ` Dust Li
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=20261201213155.65668-1-bugs@stellman-greene.com \
--to=bugs@stellman-greene.com \
--cc=alibuda@linux.alibaba.com \
--cc=davem@davemloft.net \
--cc=dust.li@linux.alibaba.com \
--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