Fix io_uring_wait_cqes_timeout() with ts == NULL

The TIMEOUT command requires a valid timeout set, or we fail. We
don't need to arm a timer if we only need to wait for a certain
number of requests, so just punt to io_uring_wait_cqes() instead.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
1 file changed