summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2019-09-06 11:03:04 -0600
committerJens Axboe <axboe@kernel.dk>2019-09-06 11:03:04 -0600
commitdfdf94f214c96d5f74f9879df9e924ebb651f00a (patch)
tree826dcb3e7d1bbfd4c4d365fabf47cb37dc2e1265
parentbc9e136e38fcfba51689561b1b45954ed67d4ffe (diff)
test/cq-full: handle io_uring_peek_cqe() -EAGAIN
Signed-off-by: Jens Axboe <axboe@kernel.dk>
-rw-r--r--test/cq-full.c2
1 files changed, 2 insertions, 0 deletions
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;
}