Print clue to reduce queue depth if engine init fails
authorJens Axboe <jens.axboe@oracle.com>
Tue, 20 Mar 2007 09:47:45 +0000 (10:47 +0100)
committerJens Axboe <jens.axboe@oracle.com>
Tue, 20 Mar 2007 09:47:45 +0000 (10:47 +0100)
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
ioengines.c

index 0e5ea62d0d5cb59d62c5e8929d13a7b9526e40b0..4ab08ce7472ca806573cf4fcb9875c96645c9b5f 100644 (file)
@@ -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)
 {
 
 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)
 }
 
 int td_io_commit(struct thread_data *td)