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.
6630a5ede5Vincent Rischmann committed on 1/4/2022, 7:13:41 AM· committed by Andrew Kelleyparent76fd6fc
1 file changedLine totals unavailable