From 48e9628d1206e0626271507064e06402aded5c72 Mon Sep 17 00:00:00 2001 From: Richard Fuchs Date: Thu, 30 May 2024 14:31:16 -0400 Subject: [PATCH] MT#55283 fix uring state mixup Change-Id: I3478c3b0265a5c3aa02ffe6580ae872faff66cac --- lib/uring.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/uring.c b/lib/uring.c index f6b4ca0f5..068f3f603 100644 --- a/lib/uring.c +++ b/lib/uring.c @@ -206,7 +206,7 @@ bool uring_poller_add_item(struct poller *p, struct poller_item *i) { } void uring_poller_blocked(struct poller *p, void *fdp) { struct poller_req *req = g_new0(__typeof(*req), 1); - req->type = ERROR; + req->type = BLOCKED; req->fd = GPOINTER_TO_INT(fdp); LOCK(&p->lock); @@ -216,7 +216,7 @@ void uring_poller_blocked(struct poller *p, void *fdp) { } void uring_poller_error(struct poller *p, void *fdp) { struct poller_req *req = g_new0(__typeof(*req), 1); - req->type = BLOCKED; + req->type = ERROR; req->fd = GPOINTER_TO_INT(fdp); LOCK(&p->lock);