[PATCH] Defer engine ops verification check
[fio.git] / ioengines.c
index a71357c67ddce9002b97f5d1afa4749a1e49100d..2ed274988aa43f36474ed63f547cd042d02cf1f5 100644 (file)
@@ -57,9 +57,6 @@ void unregister_ioengine(struct ioengine_ops *ops)
 
 int register_ioengine(struct ioengine_ops *ops)
 {
-       if (check_engine_ops(ops))
-               return 1;
-
        INIT_LIST_HEAD(&ops->list);
        list_add_tail(&ops->list, &engine_list);
        return 0;
@@ -98,6 +95,10 @@ static struct ioengine_ops *dlopen_ioengine(struct thread_data *td,
                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());
@@ -172,7 +173,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)
 {
-       gettimeofday(&io_u->issue_time, NULL);
+       fio_gettime(&io_u->issue_time, NULL);
 
        return td->io_ops->queue(td, io_u);
 }