All of lore.kernel.org
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Dongliang Qin" <cccccccccccc777777@gmail.com>
Cc: linux-rdma@vger.kernel.org
Subject: Re: [PATCH v2 3/4] RDMA/rxe: Invalidate MWs on QP destroy
Date: Mon, 28 Sep 2026 17:32:23 +0000	[thread overview]
Message-ID: <20260928173223.65CA61F00893@smtp.kernel.org> (raw)
In-Reply-To: <20260928171756.3254016-4-cccccccccccc777777@gmail.com>

> A type-2 MW holds a reference to the QP that bound it. If the QP is
> destroyed while an MW is still bound, the MW keeps the QP alive and the
> responder can retain a stale QP association.
> 
> Scanning the global MW pool to find these MWs is unsafe: pool entries are
> struct rxe_pool_elem pointers, and concurrent deallocation can invalidate
> the object being visited. It is also unnecessary because only MWs bound to
> the QP being destroyed are relevant.
> 
> Track type-2 MWs on a per-QP list. Clear qp->valid and stop the send task
> before invalidating the list so a late bind cannot attach a new MW after
> invalidation. Yield between MWs to avoid spending a long time in a
> non-preemptible loop when a QP has many bound MWs.
> 
> Fixes: 32a577b4c3a9 ("RDMA/rxe: Add support for bind MW work requests")
> 
> Cc: stable@vger.kernel.org
> Signed-off-by: Dongliang Qin <cccccccccccc777777@gmail.com>

Sashiko has reviewed this patch and found no issues. It looks great!

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20260928171756.3254016-1-cccccccccccc777777@gmail.com?part=3


  reply	other threads:[~2026-09-28 17:32 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-09-28 17:17 [PATCH v2 0/4] RDMA/rxe: Fix MW/MR lifetime races Dongliang Qin
2026-09-28 17:17 ` [PATCH v2 1/4] RDMA/rxe: Take MR reference under MW lock Dongliang Qin
2026-09-28 17:26   ` sashiko-bot
2026-09-28 17:17 ` [PATCH v2 2/4] RDMA/rxe: Reserve MR state during MW binding Dongliang Qin
2026-09-28 17:27   ` sashiko-bot
2026-09-28 17:17 ` [PATCH v2 3/4] RDMA/rxe: Invalidate MWs on QP destroy Dongliang Qin
2026-09-28 17:32   ` sashiko-bot [this message]
2026-09-28 17:17 ` [PATCH v2 4/4] RDMA/rxe: Do not force cleanup on pool timeout Dongliang Qin
2026-09-28 17:34   ` 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=20260928173223.65CA61F00893@smtp.kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=cccccccccccc777777@gmail.com \
    --cc=linux-rdma@vger.kernel.org \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.