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: Pavel Begunkov <asml.silence@gmail.com>
Date: 2026-03-23 16:14:31
Also in: io-uring

On 3/23/26 15:01, Jens Axboe wrote:
On 3/23/26 6:43 AM, Pavel Begunkov wrote:
quoted
@@ -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...
That should work, want me to resend or would you amend it? It's a good
thing I was pointed at it, but I'm not too concerned about this case as
it's a warn once.

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