From: Pavel Begunkov <asml.silence@gmail.com>
To: io-uring@vger.kernel.org
Cc: asml.silence@gmail.com, axboe@kernel.dk, netdev@vger.kernel.org
Subject: [PATCH io_uring-7.1 v2 2/5] io_uring/zcrx: don't use mark0 for allocating xarray
Date: Wed, 25 Mar 2026 13:09:19 +0000 [thread overview]
Message-ID: <b5be2425e187942277ecebec034a2294794bffcb.1774444007.git.asml.silence@gmail.com> (raw)
In-Reply-To: <cover.1774444007.git.asml.silence@gmail.com>
XA_MARK_0 is not compatible with xarray allocating entries, use
XA_MARK_1.
Fixes: fda90d43f4fac ("io_uring/zcrx: return back two step unregistration")
Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
---
io_uring/zcrx.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/io_uring/zcrx.c b/io_uring/zcrx.c
index 1ce867c68446..dede892bdda9 100644
--- a/io_uring/zcrx.c
+++ b/io_uring/zcrx.c
@@ -929,12 +929,12 @@ int io_register_zcrx(struct io_ring_ctx *ctx,
static inline bool is_zcrx_entry_marked(struct io_ring_ctx *ctx, unsigned long id)
{
- return xa_get_mark(&ctx->zcrx_ctxs, id, XA_MARK_0);
+ return xa_get_mark(&ctx->zcrx_ctxs, id, XA_MARK_1);
}
static inline void set_zcrx_entry_mark(struct io_ring_ctx *ctx, unsigned long id)
{
- xa_set_mark(&ctx->zcrx_ctxs, id, XA_MARK_0);
+ xa_set_mark(&ctx->zcrx_ctxs, id, XA_MARK_1);
}
void io_terminate_zcrx(struct io_ring_ctx *ctx)
--
2.53.0
next prev parent reply other threads:[~2026-03-25 13:09 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-03-25 13:09 [PATCH io_uring-7.1 v2 0/5] follow up zcrx fixes Pavel Begunkov
2026-03-25 13:09 ` [PATCH io_uring-7.1 v2 1/5] io_uring/zcrx: reject REG_NODEV with large rx_buf_size Pavel Begunkov
2026-03-25 13:09 ` Pavel Begunkov [this message]
2026-03-25 13:09 ` [PATCH io_uring-7.1 v2 3/5] io_uring/zcrx: don't clear not allocated niovs Pavel Begunkov
2026-03-25 13:09 ` [PATCH io_uring-7.1 v2 4/5] io_uring/zcrx: use dma_len for chunk size calculation Pavel Begunkov
2026-03-25 13:09 ` [PATCH io_uring-7.1 v2 5/5] io_uring/zcrx: use correct mmap off constants Pavel Begunkov
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=b5be2425e187942277ecebec034a2294794bffcb.1774444007.git.asml.silence@gmail.com \
--to=asml.silence@gmail.com \
--cc=axboe@kernel.dk \
--cc=io-uring@vger.kernel.org \
--cc=netdev@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