Add chain failure handling test case

Signed-off-by: Jens Axboe <axboe@kernel.dk>
This commit is contained in:
Jens Axboe
2019-05-14 19:08:37 -06:00
parent 0ba9503f79
commit 1982bfd44d
2 changed files with 78 additions and 4 deletions

View File

@@ -82,6 +82,9 @@ static void handle_cqe(struct io_uring_cqe *cqe)
{
struct io_data *data;
if (cqe->res < 0)
printf("cqe error: %s\n", strerror(cqe->res));
data = io_uring_cqe_get_data(cqe);
if (!data)
return;