X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=ioengines.c;h=0b3ec16485124df5eb3e3e7396e0208a4cd4ac27;hp=441f36fc530969b47474f43d240385edf32f11c3;hb=e1161c325f7866bae879e686d1c673ca32ab09ae;hpb=94cd00dd6cf1cec4c593a74aabfbb79f4d80afb6 diff --git a/ioengines.c b/ioengines.c index 441f36fc..0b3ec164 100644 --- a/ioengines.c +++ b/ioengines.c @@ -102,7 +102,7 @@ static struct ioengine_ops *dlopen_ioengine(struct thread_data *td, dlerror(); dlhandle = dlopen(engine_lib, RTLD_LAZY); if (!dlhandle) { - td_vmsg(td, -1, dlerror()); + td_vmsg(td, -1, dlerror(), "dlopen"); return NULL; } @@ -112,7 +112,7 @@ static struct ioengine_ops *dlopen_ioengine(struct thread_data *td, */ ops = dlsym(dlhandle, "ioengine"); if (!ops) { - td_vmsg(td, -1, dlerror()); + td_vmsg(td, -1, dlerror(), "dlsym"); dlclose(dlhandle); return NULL; } @@ -234,6 +234,8 @@ int td_io_init(struct thread_data *td) int td_io_commit(struct thread_data *td) { + if (!td->cur_depth) + return 0; if (td->io_ops->commit) return td->io_ops->commit(td);