projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
t/io_uring: use the right check for when to wait
[fio.git]
/
t
/
io_uring.c
diff --git
a/t/io_uring.c
b/t/io_uring.c
index 71443404513e4e5a64efbb13d615dd663837dad5..7ddeef39e047d8f1660c86bc571f9b967ff0f635 100644
(file)
--- a/
t/io_uring.c
+++ b/
t/io_uring.c
@@
-310,7
+310,7
@@
static void *submitter_fn(void *data)
submit_more:
to_submit = prepped;
submit:
- if (
s->inflight + BATCH_SUBMIT < DEPTH
)
+ if (
to_submit && (s->inflight + to_submit < DEPTH)
)
to_wait = 0;
else
to_wait = min(s->inflight + to_submit, BATCH_COMPLETE);