projects
/
fio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
c1db2dc
)
Print clue to reduce queue depth if engine init fails
author
Jens Axboe
<jens.axboe@oracle.com>
Tue, 20 Mar 2007 09:47:45 +0000
(10:47 +0100)
committer
Jens 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
patch
|
blob
|
blame
|
history
diff --git
a/ioengines.c
b/ioengines.c
index 0e5ea62d0d5cb59d62c5e8929d13a7b9526e40b0..4ab08ce7472ca806573cf4fcb9875c96645c9b5f 100644
(file)
--- 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)