projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[PATCH] Fix stack overflow
[fio.git]
/
ioengines.c
diff --git
a/ioengines.c
b/ioengines.c
index a71357c67ddce9002b97f5d1afa4749a1e49100d..1666612a9bf6dbe121e1c8a87c682e61786af228 100644
(file)
--- a/
ioengines.c
+++ b/
ioengines.c
@@
-98,6
+98,10
@@
static struct ioengine_ops *dlopen_ioengine(struct thread_data *td,
return NULL;
}
return NULL;
}
+ /*
+ * Unlike the included modules, external engines should have a
+ * non-static ioengine structure that we can reference.
+ */
ops = dlsym(dlhandle, "ioengine");
if (!ops) {
td_vmsg(td, -1, dlerror());
ops = dlsym(dlhandle, "ioengine");
if (!ops) {
td_vmsg(td, -1, dlerror());
@@
-172,7
+176,7
@@
int td_io_getevents(struct thread_data *td, int min, int max,
int td_io_queue(struct thread_data *td, struct io_u *io_u)
{
int td_io_queue(struct thread_data *td, struct io_u *io_u)
{
-
gettimeofday
(&io_u->issue_time, NULL);
+
fio_gettime
(&io_u->issue_time, NULL);
return td->io_ops->queue(td, io_u);
}
return td->io_ops->queue(td, io_u);
}