From: sashiko-bot@kernel.org
To: henrymei <ljp1205831794@gmail.com>
Cc: linux-rdma@vger.kernel.org
Subject: Re: [PATCH net v2] rds: ib: use rds_conn_drop() on protocol version mismatch
Date: Thu, 10 Sep 2026 08:38:11 +0000 [thread overview]
Message-ID: <20260910083812.3D8FC1F00893@smtp.kernel.org> (raw)
In-Reply-To: <20260910083015.2695284-1-henrymei@tencent.com>
> From: Aohan Mei <henrymei@tencent.com>
>
> rds_ib_cm_connect_complete() runs from the RDMA-CM event handler with
> conn->c_cm_lock held. When the peer negotiates a protocol version
> older than RDS_PROTOCOL_COMPAT_VERSION, the handler calls
> rds_conn_destroy(), which is only safe in the rmmod path: it
> synchronously tears the connection down and flush_work()es the
> shutdown work cp_down_w.
>
> That shutdown work (rds_conn_shutdown()) needs cp_cm_lock, which is
> the very lock the event handler still holds, so the flush never
> completes: the two workers wait on each other and the RDS connection
> workqueues stall for good.
>
> All other RDMA-CM failure paths (REJECTED, CONNECT_ERROR,
> DISCONNECTED) use rds_conn_drop(), which marks the connection
> RDS_CONN_ERROR and schedules the shutdown work asynchronously. Use
> it here as well.
>
> Fixes: f147dd9ecabf ("RDS/IB: Disallow connections less than RDS 3.1")
> Reported-by: TencentOS Corvus AI <corvus@tencent.com>
> Cc: stable@vger.kernel.org
> Assisted-by: CodeBuddy:Kimi-K3
> Reviewed-by: Allison Henderson <achender@kernel.org>
> Signed-off-by: Aohan Mei <henrymei@tencent.com>
Sashiko has reviewed this patch and found no issues. It looks great!
--
Sashiko AI review · https://sashiko.dev/#/patchset/20260910083015.2695284-1-henrymei@tencent.com?part=1
next prev parent reply other threads:[~2026-09-10 8:38 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-10 8:30 [PATCH net v2] rds: ib: use rds_conn_drop() on protocol version mismatch henrymei
2026-09-10 8:38 ` sashiko-bot [this message]
-- strict thread matches above, loose matches on Subject: below --
2026-09-11 7:34 Aohan Mei
2026-09-11 7:41 ` sashiko-bot
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=20260910083812.3D8FC1F00893@smtp.kernel.org \
--to=sashiko-bot@kernel.org \
--cc=linux-rdma@vger.kernel.org \
--cc=ljp1205831794@gmail.com \
--cc=sashiko-reviews@lists.linux.dev \
/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