io_uring: improve IO_Uring.copy_cqe

copy_cqes() is not guaranteed to return as many CQEs as provided in the
`wait_nr` argument, meaning the assert in `copy_cqe` can trigger.

Instead, loop until we do get at least one CQE returned.

This mimics the behaviour of liburing's _io_uring_get_cqe.
4d38f456eaVincent Rischmann committed on 1/12/2022, 6:53:42 PM· committed by Andrew Kelleyparent8771ef8
1 file changedLine totals unavailable