More cpu engine fixes
[fio.git] / fio.c
diff --git a/fio.c b/fio.c
index 0ec4f5a0e347f975078cb9628e5c81641ad592f4..6f9a378b3599084927f1cb940aa9b28d8ff7648d 100644 (file)
--- a/fio.c
+++ b/fio.c
@@ -657,10 +657,12 @@ static int init_io_u(struct thread_data *td)
                memset(io_u, 0, sizeof(*io_u));
                INIT_LIST_HEAD(&io_u->list);
 
-               io_u->buf = p + max_bs * i;
+               if (!(td->io_ops->flags & FIO_NOIO)) {
+                       io_u->buf = p + max_bs * i;
 
-               if (td_write(td))
-                       fill_io_buf(td, io_u, max_bs);
+                       if (td_write(td))
+                               fill_io_buf(td, io_u, max_bs);
+               }
 
                io_u->index = i;
                io_u->flags = IO_U_F_FREE;