Improve iodepth logging
[fio.git] / io_u.c
diff --git a/io_u.c b/io_u.c
index 0ba484169d31d024a041ddfc43b3baedc4b0f193..7f52a243fbdbc8e2b12706c1f45c52716729a8ab 100644 (file)
--- a/io_u.c
+++ b/io_u.c
@@ -83,7 +83,7 @@ static inline unsigned long long last_block(struct thread_data *td,
        if (!max_blocks)
                return 0;
 
-       return max_blocks - 1;
+       return max_blocks;
 }
 
 /*
@@ -410,14 +410,10 @@ out:
        return 0;
 }
 
-void io_u_mark_depth(struct thread_data *td, struct io_u *io_u,
-                    unsigned int nr)
+void io_u_mark_depth(struct thread_data *td, unsigned int nr)
 {
        int index = 0;
 
-       if (io_u->ddir == DDIR_SYNC)
-               return;
-
        switch (td->cur_depth) {
        default:
                index = 6;
@@ -441,7 +437,6 @@ void io_u_mark_depth(struct thread_data *td, struct io_u *io_u,
        }
 
        td->ts.io_u_map[index] += nr;
-       td->ts.total_io_u[io_u->ddir] += nr;
 }
 
 static void io_u_mark_lat_usec(struct thread_data *td, unsigned long usec)