From d235948551a4e5793c03d2d77f6673023ce98619 Mon Sep 17 00:00:00 2001 From: Vitaliy Filippov Date: Sun, 16 Nov 2025 02:19:48 +0300 Subject: [PATCH] Do not expect second notification when cqe returns error --- src/util/ringloop.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/ringloop.cpp b/src/util/ringloop.cpp index 72810a73..f37d4727 100644 --- a/src/util/ringloop.cpp +++ b/src/util/ringloop.cpp @@ -120,7 +120,7 @@ void ring_loop_t::loop() if (mt) mu.lock(); struct ring_data_t *d = (struct ring_data_t*)cqe->user_data; - if (cqe->flags & IORING_CQE_F_MORE) + if ((cqe->flags & IORING_CQE_F_MORE) && cqe->res >= 0) { // There will be a second notification if (mt)