don't log iopiece when do_verify is off
[fio.git] / io_u.c
diff --git a/io_u.c b/io_u.c
index 4750ac600a4272142bc85ccf9333382fcb1a4d28..93c451cb9bd9c69038ae20e45d5fc4f4d30af1fc 100644 (file)
--- a/io_u.c
+++ b/io_u.c
@@ -313,6 +313,9 @@ void requeue_io_u(struct thread_data *td, struct io_u **io_u)
 
 static int fill_io_u(struct thread_data *td, struct io_u *io_u)
 {
+       if (td->io_ops->flags & FIO_NOIO)
+               goto out;
+
        /*
         * see if it's time to sync
         */
@@ -760,6 +763,7 @@ static void io_completed(struct thread_data *td, struct io_u *io_u,
                io_u_mark_latency(td, usec);
 
                if (td_write(td) && idx == DDIR_WRITE &&
+                   td->o.do_verify &&
                    td->o.verify != VERIFY_NONE)
                        log_io_piece(td, io_u);