From: Jens Axboe Date: Tue, 29 Jan 2019 19:04:22 +0000 (-0700) Subject: t/io_uring: fix bad if X-Git-Tag: fio-3.13~6 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=e2f309e61cb68f19cbe7b02b1c69246d6dfa36bf;p=fio.git t/io_uring: fix bad if We need braces for that check, or it's always going to be true. Signed-off-by: Jens Axboe --- diff --git a/t/io_uring.c b/t/io_uring.c index 9ded1590..3bcb19b6 100644 --- a/t/io_uring.c +++ b/t/io_uring.c @@ -315,7 +315,7 @@ submit: if (to_wait) flags = IORING_ENTER_GETEVENTS; - if (*ring->flags & IORING_SQ_NEED_WAKEUP) + if ((*ring->flags & IORING_SQ_NEED_WAKEUP)) flags |= IORING_ENTER_SQ_WAKEUP; ret = io_uring_enter(s, to_submit, to_wait, flags); s->calls++;