engines/io_uring: delete debug code
authorJens Axboe <axboe@kernel.dk>
Thu, 25 Aug 2022 17:19:34 +0000 (11:19 -0600)
committerJens Axboe <axboe@kernel.dk>
Thu, 25 Aug 2022 17:19:34 +0000 (11:19 -0600)
This was inadvertently introduced by a previous commit, get rid
of it.

Fixes: 1816895b788e ("engines/io_uring: pass back correct error value when interrupted")
Signed-off-by: Jens Axboe <axboe@kernel.dk>
engines/io_uring.c

index 89d64b06fcb75c98bc7654793a9fc8d027a92a43..94376efa7f79ad91894830250e059312f28ed798 100644 (file)
@@ -445,18 +445,12 @@ static struct io_u *fio_ioring_event(struct thread_data *td, int event)
        struct io_uring_cqe *cqe;
        struct io_u *io_u;
        unsigned index;
-       static int eio;
 
        index = (event + ld->cq_ring_off) & ld->cq_ring_mask;
 
        cqe = &ld->cq_ring.cqes[index];
        io_u = (struct io_u *) (uintptr_t) cqe->user_data;
 
-       if (eio++ == 5) {
-               printf("mark EIO\n");
-               cqe->res = -EIO;
-       }
-
        if (cqe->res != io_u->xfer_buflen) {
                if (cqe->res > io_u->xfer_buflen)
                        io_u->error = -cqe->res;