From: Leon Romanovsky <leon@kernel.org>
To: bvanassche@acm.org, jgg@ziepe.ca, kensanya@163.com
Cc: linux-rdma@vger.kernel.org, target-devel@vger.kernel.org,
linux-kernel@vger.kernel.org, TanZheng <tanzheng@kylinos.cn>
Subject: Re: [PATCH v2] RDMA/srpt: Fix srpt_alloc_rw_ctxs() unwind counters
Date: Thu, 16 Jul 2026 04:53:20 -0400 [thread overview]
Message-ID: <178419200060.304431.9176776050308942193.b4-ty@kernel.org> (raw)
In-Reply-To: <20260715101550.45345-1-kensanya@163.com>
On Wed, 15 Jul 2026 18:15:50 +0800, kensanya@163.com wrote:
> When srpt_alloc_rw_ctxs() fails partway through a multi-buffer indirect
> descriptor, the unwind path destroys RDMA contexts but leaves stale
> n_rw_ctx and n_rdma values (and a dangling rw_ctxs pointer). Later
> sq_wr_avail accounting in srpt_queue_response() or srpt_write_pending()
> can then subtract the wrong number of send queue credits.
>
> Reset the counters and clear rw_ctxs after freeing the heap
> allocation before returning an error.
>
> [...]
Applied, thanks!
[1/1] RDMA/srpt: Fix srpt_alloc_rw_ctxs() unwind counters
https://git.kernel.org/rdma/rdma/c/91997e188f68af
Best regards,
--
Leon Romanovsky <leon@kernel.org>
next prev parent reply other threads:[~2026-07-16 8:53 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-15 10:15 kensanya
2026-07-16 8:53 ` Leon Romanovsky [this message]
2026-07-16 17:37 ` Bart Van Assche
2026-07-16 18:22 ` Leon Romanovsky
2026-07-16 18:24 ` Leon Romanovsky
2026-07-16 18:46 ` Bart Van Assche
2026-07-17 2:00 ` kensanya
2026-07-17 22:14 ` Bart Van Assche
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=178419200060.304431.9176776050308942193.b4-ty@kernel.org \
--to=leon@kernel.org \
--cc=bvanassche@acm.org \
--cc=jgg@ziepe.ca \
--cc=kensanya@163.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-rdma@vger.kernel.org \
--cc=tanzheng@kylinos.cn \
--cc=target-devel@vger.kernel.org \
/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
all inboxes | Powered by JetHome®