projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix g++ warning about void* used in arithmetic
[fio.git]
/
engines
/
windowsaio.c
diff --git
a/engines/windowsaio.c
b/engines/windowsaio.c
index f32c3563dcc50417930829c253a558159ff174e7..16df74035f189e15c3811755b68285795f694aaa 100644
(file)
--- a/
engines/windowsaio.c
+++ b/
engines/windowsaio.c
@@
-9,7
+9,6
@@
#include <unistd.h>
#include <signal.h>
#include <errno.h>
#include <unistd.h>
#include <signal.h>
#include <errno.h>
-#include <windows.h>
#include "../fio.h"
#include "../fio.h"
@@
-260,9
+259,9
@@
static int fio_windowsaio_getevents(struct thread_data *td, unsigned int min,
unsigned int max, struct timespec *t)
{
struct windowsaio_data *wd = td->io_ops->data;
unsigned int max, struct timespec *t)
{
struct windowsaio_data *wd = td->io_ops->data;
- struct flist_head *entry;
unsigned int dequeued = 0;
struct io_u *io_u;
unsigned int dequeued = 0;
struct io_u *io_u;
+ int i;
struct fio_overlapped *fov;
DWORD start_count = 0;
DWORD end_count = 0;
struct fio_overlapped *fov;
DWORD start_count = 0;
DWORD end_count = 0;
@@
-276,8
+275,10
@@
static int fio_windowsaio_getevents(struct thread_data *td, unsigned int min,
}
do {
}
do {
- flist_for_each(entry, &td->io_u_busylist) {
- io_u = flist_entry(entry, struct io_u, list);
+ io_u_qiter(&td->io_u_all, io_u, i) {
+ if (!(io_u->flags & IO_U_F_FLIGHT))
+ continue;
+
fov = (struct fio_overlapped*)io_u->engine_data;
if (fov->io_complete) {
fov = (struct fio_overlapped*)io_u->engine_data;
if (fov->io_complete) {