X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=ioengines.c;h=c773f2ed3464a08fa6a51464d33d68a0231fc553;hp=95013d1daaaa07d9bd26ed2899a81d7fd1b45244;hb=356ef1a19ee4487ece7b4295347b37491d2bf727;hpb=f70afaca743f2971312d9928f069a9ea7daeccf7 diff --git a/ioengines.c b/ioengines.c index 95013d1d..c773f2ed 100644 --- a/ioengines.c +++ b/ioengines.c @@ -368,17 +368,17 @@ int td_io_init(struct thread_data *td) if (td->io_ops->init) { ret = td->io_ops->init(td); - if (ret && td->o.iodepth > 1) { - log_err("fio: io engine init failed. Perhaps try" - " reducing io depth?\n"); - } + if (ret) + log_err("fio: io engine %s init failed.%s\n", + td->io_ops->name, + td->o.iodepth > 1 ? + " Perhaps try reducing io depth?" : ""); + else + td->io_ops_init = 1; if (!td->error) td->error = ret; } - if (!ret && td_ioengine_flagged(td, FIO_NOIO)) - td->flags |= TD_F_NOIO; - return ret; }