engines/io_uring: consolidate fio_ioring_cqring_reap() arguments
authorCaleb Sander Mateos <csander@purestorage.com>
Thu, 17 Jul 2025 17:03:20 +0000 (11:03 -0600)
committerCaleb Sander Mateos <csander@purestorage.com>
Thu, 17 Jul 2025 17:03:20 +0000 (11:03 -0600)
commitec87e8c198a341f5649020a24516c04293ed8787
tree6156edb9a4fb7c020bab8ac67be57326468c5c33
parent645d43a545d2108bbe3ee2e66aab750a3e2bc513
engines/io_uring: consolidate fio_ioring_cqring_reap() arguments

fio_ioring_cqring_reap() takes both an events and a max argument and
will return up to events - max CQEs. Only one of the two callers passes
an existing events count. So remove the events argument and have
fio_ioring_getevents() pass events - max instead. This simplifies the
function signature and avoids an addition inside the loop over CQEs.

Signed-off-by: Caleb Sander Mateos <csander@purestorage.com>
engines/io_uring.c