X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;f=ioengines.c;h=4ab08ce7472ca806573cf4fcb9875c96645c9b5f;hb=0725726350094b2f8ff558d6ee470e3835512063;hp=0e5ea62d0d5cb59d62c5e8929d13a7b9526e40b0;hpb=2dc1bbeb58edc85f2829eed6729862c438ea2353;p=fio.git diff --git a/ioengines.c b/ioengines.c index 0e5ea62d..4ab08ce7 100644 --- a/ioengines.c +++ b/ioengines.c @@ -238,10 +238,15 @@ int td_io_queue(struct thread_data *td, struct io_u *io_u) int td_io_init(struct thread_data *td) { - if (td->io_ops->init) - return td->io_ops->init(td); + int ret = 0; - return 0; + 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 dpeth?\n"); + } + + return ret; } int td_io_commit(struct thread_data *td)