From: Jens Axboe Date: Tue, 20 Mar 2007 09:47:45 +0000 (+0100) Subject: Print clue to reduce queue depth if engine init fails X-Git-Tag: fio-1.15~66 X-Git-Url: https://git.kernel.dk/?p=fio.git;a=commitdiff_plain;h=eeb121607c2a7f36b0fac17649cb8081d6fd853b Print clue to reduce queue depth if engine init fails Signed-off-by: Jens Axboe --- 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)