From e007b56af0e4967d3931a931d0cf360b4a789be6 Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Fri, 11 Sep 2020 08:52:51 -0600 Subject: [PATCH] engines/io_uring: mark as not compatible with io_submit_mode=offload Signed-off-by: Jens Axboe --- engines/io_uring.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/engines/io_uring.c b/engines/io_uring.c index e2b5e6ee..69f48859 100644 --- a/engines/io_uring.c +++ b/engines/io_uring.c @@ -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; -- 2.25.1