summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
a8f6714)
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>
r = fio_ioring_cqring_reap(td, events, max);
if (r) {
events += r;
r = fio_ioring_cqring_reap(td, events, max);
if (r) {
events += r;
if (actual_min != 0)
actual_min -= r;
continue;
if (actual_min != 0)
actual_min -= r;
continue;