Linux RDMA and InfiniBand development
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Andrew Stellman" <bugs@stellman-greene.com>
Cc: linux-rdma@vger.kernel.org
Subject: Re: [PATCH rdma-rc] RDMA/siw: Flush the ORQ when CLOSING or TERMINATE moves to ERROR
Date: Sun, 29 Nov 2026 13:58:42 +0000	[thread overview]
Message-ID: <sashiko-outbox-239663@kernel.org> (raw)
In-Reply-To: <20261129135301.80788-1-bugs@stellman-greene.com>

> From: Andrew Stellman <astellman@stellman-greene.com>
> 
> A sent RDMA READ stays in the ORQ until its Read Response arrives,
> while its TX WQE goes back to SIW_WR_IDLE. On the move to ERROR,
> siw_qp_nextstate_from_close() and siw_qp_nextstate_from_term() call
> siw_sq_flush() only if the TX WQE is not idle. That guard treats an
> idle TX WQE as nothing to flush and ignores the ORQ, so the READ gets
> no flush completion from that transition.
> 
> Call siw_sq_flush() unconditionally in both paths, as the RTS to ERROR
> path already does. siw_sq_flush() flushes the ORQ first and skips an
> idle TX WQE. From reading the source (not tested), it then also
> flushes any SQ entries not yet sent and raises IB_EVENT_SQ_DRAINED if
> there were any, which these two paths skipped when the TX WQE was
> idle.
> [ ... ]
> The fix was drafted with OpenAI GPT-6 (Codex) and this changelog with
> Claude Opus 5.5, and both were reviewed by me.
> 
> Fixes: f29dd55b0236 ("rdma/siw: queue pair methods")
> Signed-off-by: Andrew Stellman <astellman@stellman-greene.com>

Sashiko has reviewed this patch and found no issues.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261129135301.80788-1-bugs@stellman-greene.com?part=1

      reply	other threads:[~2026-11-29 13:58 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-29 13:53 [PATCH rdma-rc] RDMA/siw: Flush the ORQ when CLOSING or TERMINATE moves to ERROR Andrew Stellman
2026-11-29 13:58 ` sashiko-bot [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=sashiko-outbox-239663@kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=bugs@stellman-greene.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox