io_uring: drop redundant IO_MODE_OFFLOAD check
authorStefan Hajnoczi <stefanha@redhat.com>
Thu, 10 Jun 2021 15:55:39 +0000 (16:55 +0100)
committerJens Axboe <axboe@kernel.dk>
Thu, 10 Jun 2021 22:40:49 +0000 (16:40 -0600)
check_engine_ops() already returns an error if io_submit_mode is
IO_MODE_OFFLOAD and the engine is marked FIO_NO_OFFLOAD.

Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
engines/io_uring.c

index b962e8041b6f8d113669b4b2a31224a68d19aa0f..9c091e37e60b2cc1bd9a63ae37228ac51fc2003a 100644 (file)
@@ -728,12 +728,6 @@ static int fio_ioring_init(struct thread_data *td)
        struct ioring_data *ld;
        struct thread_options *to = &td->o;
 
-       if (to->io_submit_mode == IO_MODE_OFFLOAD) {
-               log_err("fio: io_submit_mode=offload is not compatible (or "
-                       "useful) with io_uring\n");
-               return 1;
-       }
-
        /* sqthread submission requires registered files */
        if (o->sqpoll_thread)
                o->registerfiles = 1;