[PATCH] Make the libaio fsync fallback really work
[fio.git] / io_u.c
diff --git a/io_u.c b/io_u.c
index 5e53b81443cda688bdb42163dc2a5af4cc28fe04..ebfa0d45a324111a3cda91a087909cf57e063cbe 100644 (file)
--- a/io_u.c
+++ b/io_u.c
@@ -322,6 +322,12 @@ struct io_u *get_io_u(struct thread_data *td, struct fio_file *f)
                return NULL;
        }
 
+       /*
+        * Set io data pointers.
+        */
+       io_u->xfer_buf = io_u->buf;
+       io_u->xfer_buflen = io_u->buflen;
+
        fio_gettime(&io_u->start_time, NULL);
        return io_u;
 }
@@ -379,5 +385,3 @@ void ios_completed(struct thread_data *td, struct io_completion_data *icd)
                put_io_u(td, io_u);
        }
 }
-
-