projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
First cut at doing sequences of atoms in one commit
[fio.git]
/
ioengines.c
diff --git
a/ioengines.c
b/ioengines.c
index 441f36fc530969b47474f43d240385edf32f11c3..0b3ec16485124df5eb3e3e7396e0208a4cd4ac27 100644
(file)
--- 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) {
dlerror();
dlhandle = dlopen(engine_lib, RTLD_LAZY);
if (!dlhandle) {
- td_vmsg(td, -1, dlerror());
+ td_vmsg(td, -1, dlerror()
, "dlopen"
);
return NULL;
}
return NULL;
}
@@
-112,7
+112,7
@@
static struct ioengine_ops *dlopen_ioengine(struct thread_data *td,
*/
ops = dlsym(dlhandle, "ioengine");
if (!ops) {
*/
ops = dlsym(dlhandle, "ioengine");
if (!ops) {
- td_vmsg(td, -1, dlerror());
+ td_vmsg(td, -1, dlerror()
, "dlsym"
);
dlclose(dlhandle);
return NULL;
}
dlclose(dlhandle);
return NULL;
}
@@
-234,6
+234,8
@@
int td_io_init(struct thread_data *td)
int td_io_commit(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);
if (td->io_ops->commit)
return td->io_ops->commit(td);