projects
/
fio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
2e7888e
)
t/io_uring: wait if we're at queue limit
author
Jens Axboe
<axboe@kernel.dk>
Tue, 15 Jan 2019 17:58:17 +0000
(10:58 -0700)
committer
Jens Axboe
<axboe@kernel.dk>
Tue, 15 Jan 2019 17:58:17 +0000
(10:58 -0700)
There was an off-by-one there, it's perfectly fine not to specify
events to wait for if the submission will take us to the queue
depth limit.
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 205769cff12bdf590c675bf97b27a3a5876d2146..78b92685316cb7bc751cd3b49295be388f8a5807 100644
(file)
--- a/
t/io_uring.c
+++ b/
t/io_uring.c
@@
-311,7
+311,7
@@
static void *submitter_fn(void *data)
submit_more:
to_submit = prepped;
submit:
- if (to_submit && (s->inflight + to_submit < DEPTH))
+ if (to_submit && (s->inflight + to_submit <
=
DEPTH))
to_wait = 0;
else
to_wait = min(s->inflight + to_submit, BATCH_COMPLETE);