From dfdf94f214c96d5f74f9879df9e924ebb651f00a Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Fri, 6 Sep 2019 11:03:04 -0600 Subject: test/cq-full: handle io_uring_peek_cqe() -EAGAIN Signed-off-by: Jens Axboe --- test/cq-full.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'test') diff --git a/test/cq-full.c b/test/cq-full.c index 25fa42c..574e03d 100644 --- a/test/cq-full.c +++ b/test/cq-full.c @@ -64,6 +64,8 @@ int main(int argc, char *argv[]) do { ret = io_uring_peek_cqe(&ring, &cqe); if (ret < 0) { + if (ret == -EAGAIN) + break; printf("wait completion %d\n", ret); goto err; } -- cgit