engines/io_uring: update getevents max to reflect previously seen events
authorLeah Rumancik <leah.rumancik@gmail.com>
Mon, 10 Apr 2023 18:57:15 +0000 (11:57 -0700)
committerLeah Rumancik <leah.rumancik@gmail.com>
Mon, 10 Apr 2023 21:10:56 +0000 (14:10 -0700)
commitae8646a1e5848994c4f4511aa190178958309c92
tree185290947621b908d61127b4a9f42709b01fb6db
parenta8f6714e91d58f4a2eff4198b9f09c89df75f5cb
engines/io_uring: update getevents max to reflect previously seen events

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