summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Hajnoczi <stefanha@redhat.com>2021-06-10 16:55:39 +0100
committerJens Axboe <axboe@kernel.dk>2021-06-10 16:40:49 -0600
commitdd4620b7f9171edaa10955c4826454a05af27c85 (patch)
tree1b6a672207a9716cc3360751206e72c650deea0d
parent40d0b84220f7c0ff9c3874656db7f0f8cb6a85e6 (diff)
downloadfio-dd4620b7f9171edaa10955c4826454a05af27c85.tar.gz
fio-dd4620b7f9171edaa10955c4826454a05af27c85.tar.bz2
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 <stefanha@redhat.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
-rw-r--r--engines/io_uring.c6
1 files changed, 0 insertions, 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;