From: Jens Axboe Date: Fri, 11 Sep 2020 15:58:15 +0000 (-0600) Subject: Allow offload with FAKEIO engines X-Git-Tag: fio-3.24~28 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=695611a9d4cd554d44d8b2ec5da2811061950a2e;p=fio.git 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 --- 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;