engines/io_uring: mark as not compatible with io_submit_mode=offload
[fio.git] / engines / io_uring.c
index e2b5e6ee3725d18289372bdb0e5fd276cddfa807..69f48859d7d55cb067db928d26ab49b5a1d7b36e 100644 (file)
@@ -724,6 +724,12 @@ 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;