projects
/
fio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e9d4aa0
)
t/io_uring: fix bad if
author
Jens Axboe
<axboe@kernel.dk>
Tue, 29 Jan 2019 19:04:22 +0000
(12:04 -0700)
committer
Jens Axboe
<axboe@kernel.dk>
Tue, 29 Jan 2019 19:04:22 +0000
(12:04 -0700)
We need braces for that check, or it's always going to be true.
Signed-off-by: Jens Axboe <axboe@kernel.dk>
t/io_uring.c
patch
|
blob
|
blame
|
history
diff --git
a/t/io_uring.c
b/t/io_uring.c
index 9ded1590999ed0cf2e89566fc3e8e471d561dfee..3bcb19b647ccc2c13c91098bf9a4231a12b05bfb 100644
(file)
--- 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++;