Add chain failure handling test case
Signed-off-by: Jens Axboe <axboe@kernel.dk>
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user