t/io_uring: only set IORING_ENTER_GETEVENTS when actively reaping
authorJens Axboe <axboe@kernel.dk>
Fri, 11 Jan 2019 21:40:16 +0000 (14:40 -0700)
committerJens Axboe <axboe@kernel.dk>
Fri, 11 Jan 2019 21:40:16 +0000 (14:40 -0700)
commite0abe38815e1c8cf7a319c6fbd0b1d60691db3d5
tree6e6f7f4fcbc4fc0ca4c018e3e9d643daa00fc66a
parent2a09811cf987fce7f125178ba444aa31f1a57ab4
t/io_uring: only set IORING_ENTER_GETEVENTS when actively reaping

Don't set it if we don't need to find an event (to_wait == 0).

Signed-off-by: Jens Axboe <axboe@kernel.dk>
t/io_uring.c