X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=engines%2Flibaio.c;h=e0d7cbbafb780551f35c62c83bb9dd3b26b4b164;hp=e15c519e453015422db3513866fad84844a0e464;hb=8b6a404cdd2c40715885e562416c3db039912773;hpb=b2fcbe01bdac01bc5d7f8ddea94f264b9f8c2003 diff --git a/engines/libaio.c b/engines/libaio.c index e15c519e..e0d7cbba 100644 --- a/engines/libaio.c +++ b/engines/libaio.c @@ -220,7 +220,7 @@ static int fio_libaio_queue(struct thread_data *td, struct io_u *io_u) static void fio_libaio_queued(struct thread_data *td, struct io_u **io_us, unsigned int nr) { - struct timeval now; + struct timespec now; unsigned int i; if (!fio_fill_issue_time(td)) @@ -241,7 +241,7 @@ static int fio_libaio_commit(struct thread_data *td) struct libaio_data *ld = td->io_ops_data; struct iocb **iocbs; struct io_u **io_us; - struct timeval tv; + struct timespec ts; int ret, wait_start = 0; if (!ld->queued) @@ -282,9 +282,9 @@ static int fio_libaio_commit(struct thread_data *td) break; } if (!wait_start) { - fio_gettime(&tv, NULL); + fio_gettime(&ts, NULL); wait_start = 1; - } else if (mtime_since_now(&tv) > 30000) { + } else if (mtime_since_now(&ts) > 30000) { log_err("fio: aio appears to be stalled, giving up\n"); break; }