From 695611a9d4cd554d44d8b2ec5da2811061950a2e Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Fri, 11 Sep 2020 09:58:15 -0600 Subject: [PATCH] Allow offload with FAKEIO engines The last check was too restrictive, we can allow it with the fake IO engines. Fixes: abfd235a0533 ("Disable io_submit_mode=offload with async engines") Signed-off-by: Jens Axboe --- ioengines.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ioengines.c b/ioengines.c index 32583d5a..d3be8026 100644 --- a/ioengines.c +++ b/ioengines.c @@ -44,7 +44,8 @@ static bool check_engine_ops(struct thread_data *td, struct ioengine_ops *ops) /* * async engines aren't reliable with offload */ - if (td->o.io_submit_mode == IO_MODE_OFFLOAD) { + if ((td->o.io_submit_mode == IO_MODE_OFFLOAD) && + !(ops->flags & FIO_FAKEIO)) { log_err("%s: can't be used with offloaded submit. Use a sync " "engine\n", ops->name); return true; -- 2.25.1