projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
man page: fix bad case for 'pre-reading file' state
[fio.git]
/
engines
/
libaio.c
diff --git
a/engines/libaio.c
b/engines/libaio.c
index e15c519e453015422db3513866fad84844a0e464..e0d7cbbafb780551f35c62c83bb9dd3b26b4b164 100644
(file)
--- 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)
{
static void fio_libaio_queued(struct thread_data *td, struct io_u **io_us,
unsigned int nr)
{
- struct time
val
now;
+ struct time
spec
now;
unsigned int i;
if (!fio_fill_issue_time(td))
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 libaio_data *ld = td->io_ops_data;
struct iocb **iocbs;
struct io_u **io_us;
- struct time
val tv
;
+ struct time
spec ts
;
int ret, wait_start = 0;
if (!ld->queued)
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) {
break;
}
if (!wait_start) {
- fio_gettime(&t
v
, NULL);
+ fio_gettime(&t
s
, NULL);
wait_start = 1;
wait_start = 1;
- } else if (mtime_since_now(&t
v
) > 30000) {
+ } else if (mtime_since_now(&t
s
) > 30000) {
log_err("fio: aio appears to be stalled, giving up\n");
break;
}
log_err("fio: aio appears to be stalled, giving up\n");
break;
}