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:
a8f6714
)
engines/io_uring: update getevents max to reflect previously seen events
author
Leah Rumancik
<leah.rumancik@gmail.com>
Mon, 10 Apr 2023 18:57:15 +0000
(11:57 -0700)
committer
Leah Rumancik
<leah.rumancik@gmail.com>
Mon, 10 Apr 2023 21:10:56 +0000
(14:10 -0700)
To ensure we don't return more than the requested number of events,
update the max events variable after reaping events before subsequent
calls to io_getevents system call.
Signed-off-by: Leah Rumancik <leah.rumancik@gmail.com>
engines/io_uring.c
patch
|
blob
|
blame
|
history
diff --git
a/engines/io_uring.c
b/engines/io_uring.c
index f10a45933ff5bb1877b072538547ee2e637a69d5..7f743c2a88ade6e964edda2a6f6f306db6299f39 100644
(file)
--- a/
engines/io_uring.c
+++ b/
engines/io_uring.c
@@
-529,6
+529,7
@@
static int fio_ioring_getevents(struct thread_data *td, unsigned int min,
r = fio_ioring_cqring_reap(td, events, max);
if (r) {
events += r;
+ max -= r;
if (actual_min != 0)
actual_min -= r;
continue;