{
struct posixaio_data *pd = td->io_ops->data;
struct aiocb *suspend_list[SUSPEND_ENTRIES];
- struct list_head *entry;
+ struct flist_head *entry;
struct timespec start;
int have_timeout = 0;
int suspend_entries = 0;
have_timeout = 1;
r = 0;
- suspend_list[0] = NULL;
+ memset(suspend_list, 0, sizeof(*suspend_list));
restart:
- list_for_each(entry, &td->io_u_busylist) {
- struct io_u *io_u = list_entry(entry, struct io_u, list);
+ flist_for_each(entry, &td->io_u_busylist) {
+ struct io_u *io_u = flist_entry(entry, struct io_u, list);
int err;
if (io_u->seen)
if (pd) {
free(pd->aio_events);
free(pd);
- td->io_ops->data = NULL;
}
}