From dd4620b7f9171edaa10955c4826454a05af27c85 Mon Sep 17 00:00:00 2001 From: Stefan Hajnoczi Date: Thu, 10 Jun 2021 16:55:39 +0100 Subject: [PATCH] io_uring: drop redundant IO_MODE_OFFLOAD check 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 Signed-off-by: Jens Axboe --- engines/io_uring.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/engines/io_uring.c b/engines/io_uring.c index b962e804..9c091e37 100644 --- a/engines/io_uring.c +++ b/engines/io_uring.c @@ -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; -- 2.25.1