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 <axboe@kernel.dk>
/*
* 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;