ioengines with post_init steps were not fully fully initialized by
offload worker threads because the post_init function was never called.
Without this patch all libaio operations submitted in offload mode fail
because the ioengine was not fully initialized.
Fixes:
2041bd343da1 ("engines/libaio: add preliminary support for pre-mapped IO buffers")
Signed-off-by: Jens Axboe <axboe@kernel.dk>
if (td_io_init(td))
goto err_io_init;
+ if (td->io_ops->post_init && td->io_ops->post_init(td))
+ goto err_io_init;
+
set_epoch_time(td, td->o.log_unix_epoch);
fio_getrusage(&td->ru_start);
clear_io_state(td, 1);