Revert "engines/io_uring: update getevents max to reflect previously seen events"
This reverts commit
ae8646a1e5848994c4f4511aa190178958309c92.
fio_ioring_cqring_reap() returns up to max - events CQEs. However, the
return value of fio_ioring_cqring_reap() is used to both add to events
and subtract from max. This means that if less than min CQEs are
available and the CQ needs to be polled again, max is effectively
lowered by the number of CQEs that were available. Adding to events is
sufficient to ensure the next call to fio_ioring_cqring_reap() will only
return the remaining CQEs. Commit
ae8646a1e584 ("engines/io_uring:
update getevents max to reflect previously seen events") added an
incorrect subtraction from max as well, so revert it.
Signed-off-by: Caleb Sander Mateos <csander@purestorage.com>
Fixes:
ae8646a1e584 ("engines/io_uring: update getevents max to reflect previously seen events")