close_ioengine() clears ->data after calling engine cleanup
[fio.git] / engines / posixaio.c
index 95141750a26466d8e8f4c6894e3716fa7bac3a4d..acd215c2f9f01a27bce0fa2b4f3a0ea7a438e8d7 100644 (file)
@@ -93,7 +93,7 @@ static int fio_posixaio_getevents(struct thread_data *td, unsigned int min,
                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);
@@ -184,7 +184,6 @@ static void fio_posixaio_cleanup(struct thread_data *td)
        if (pd) {
                free(pd->aio_events);
                free(pd);
-               td->io_ops->data = NULL;
        }
 }