diff --git a/src/queue.c b/src/queue.c index 1552a8b9..d29d422b 100644 --- a/src/queue.c +++ b/src/queue.c @@ -196,9 +196,9 @@ unsigned __io_uring_flush_sq(struct io_uring *ring) * Ensure kernel sees the SQE updates before the tail update. */ if (!(ring->flags & IORING_SETUP_SQPOLL)) - io_uring_smp_store_release(sq->ktail, tail); - else IO_URING_WRITE_ONCE(*sq->ktail, tail); + else + io_uring_smp_store_release(sq->ktail, tail); } /* * This _may_ look problematic, as we're not supposed to be reading