Cpu clock does not wrap if there is no CPU clock
[fio.git] / engines / libaio.c
index 12f3b366d71be5c521a67d238878f0f3a947ad2d..d4f48303becb8af99a63bcc0e1667a030bdd0a66 100644 (file)
@@ -37,7 +37,7 @@ struct libaio_data {
 };
 
 struct libaio_options {
-       struct thread_data *td;
+       void *pad;
        unsigned int userspace_reap;
 };
 
@@ -281,7 +281,7 @@ static int fio_libaio_commit(struct thread_data *td)
                        }
                        if (!wait_start) {
                                fio_gettime(&tv, NULL);
-                               wait_start = 0;
+                               wait_start = 1;
                        } else if (mtime_since_now(&tv) > 30000) {
                                log_err("fio: aio appears to be stalled, giving up\n");
                                break;