From b256f83f27f3efbaea931f6a84184628e9800ef8 Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Tue, 18 May 2021 18:20:11 -0400 Subject: [PATCH] linux::io_uring: fix needs_enter Signed-off-by: Drew DeVault --- io_uring/queue.ha | 2 +- diff --git a/io_uring/queue.ha b/io_uring/queue.ha index 6e7cc1d5462746c0d487341e1d498cba38930534..f71ba7db60acebd3dfaefefe4886a610247fb46d 100644 --- a/io_uring/queue.ha +++ b/io_uring/queue.ha @@ -24,7 +24,7 @@ sq: *sqe => sq, }; fn needs_enter(ring: *io_uring, flags: *enter_flags) bool = { - if (ring.flags & setup_flags::IOPOLL == setup_flags::IOPOLL) { + if (ring.flags & setup_flags::IOPOLL != setup_flags::IOPOLL) { return true; }; -- 2.48.1