All of lore.kernel.org
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Cygnus Qiu" <eritque-arcus@ikuyo.dev>
Cc: linux-rdma@vger.kernel.org
Subject: Re: [PATCH v2] RDMA/siw: don't complete a fenced READ twice on flush
Date: Fri, 27 Nov 2026 01:00:23 +0000	[thread overview]
Message-ID: <sashiko-outbox-236384@kernel.org> (raw)
In-Reply-To: <20261127005304.366336-1-eritque-arcus@ikuyo.dev>

> siw_sq_flush() completes a QUEUED READ in the TX slot, assuming the READ
> is not in the ORQ yet. That holds only while a full ORQ fences it.
> siw_check_tx_fence() copies a fenced READ into the ORQ when a Read
> Response frees a slot, and siw_activate_tx_from_sq() copies a READ into
> a free slot. In both cases the READ stays QUEUED until the TX path sends
> it, and a flush in that window completes it twice.
> 
> A peer can hold the window open. It advertises IRD 1, so the ORQ holds
> one READ: READ1 is in the ORQ and sent, READ2 waits fenced in the TX
> slot. The peer then sends Read Response 1 and a FIN in one TCP segment:
> 
>   softirq (TCP receive)                 siw_cm_wq worker
>   tcp_data_queue()
>   |-tcp_fin()
>   | \-siw_cm_llp_state_change()
> [ ... ]
> With this patch the READ is flushed once and KASAN stays silent.
> 
> Fixes: f29dd55b0236 ("rdma/siw: queue pair methods")
> Cc: stable@vger.kernel.org
> Signed-off-by: Cygnus Qiu <eritque-arcus@ikuyo.dev>

Sashiko has reviewed this patch and found no issues.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261127005304.366336-1-eritque-arcus@ikuyo.dev?part=1

  reply	other threads:[~2026-11-27  1:00 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-27  0:53 [PATCH v2] RDMA/siw: don't complete a fenced READ twice on flush Cygnus Qiu
2026-11-27  1:00 ` sashiko-bot [this message]
2026-11-27 12:13 ` Bernard Metzler
2026-12-01 19:03 ` Leon Romanovsky

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-236384@kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=eritque-arcus@ikuyo.dev \
    --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.