Thread (22 messages) 22 messages, 3 authors, 2026-03-23

Re: [PATCH io_uring-7.1 01/16] io_uring/zcrx: return back two step unregistration

From: Jens Axboe <axboe@kernel.dk>
Date: 2026-03-23 15:01:34
Also in: io-uring

On 3/23/26 6:43 AM, Pavel Begunkov wrote:
quoted hunk ↗ jump to hunk
@@ -898,12 +933,15 @@ void io_unregister_zcrx_ifqs(struct io_ring_ctx *ctx)
 			unsigned long id = 0;
 
 			ifq = xa_find(&ctx->zcrx_ctxs, &id, ULONG_MAX, XA_PRESENT);
-			if (ifq)
+			if (ifq) {
+				if (WARN_ON_ONCE(!is_zcrx_entry_marked(ctx, id)))
+					break;
This break is inside the scoped_guard(), does this need an ifq = NULL
here? I do like scoped locking, but this seems a bit tricky...

-- 
Jens Axboe
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help