projects
/
fio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b3ce355
)
t/io_uring: use the right check for when to wait
author
Jens Axboe
<axboe@kernel.dk>
Mon, 14 Jan 2019 05:49:48 +0000
(22:49 -0700)
committer
Jens Axboe
<axboe@kernel.dk>
Mon, 14 Jan 2019 05:52:07 +0000
(22:52 -0700)
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 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);