Allow marking of queue depth for more than 1 io_u at the time
Same code as before, just prepared for it.
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
diff --git a/io_u.c b/io_u.c
index 985c99b..0ba4841 100644
--- a/io_u.c
+++ b/io_u.c
@@ -410,7 +410,8 @@
return 0;
}
-void io_u_mark_depth(struct thread_data *td, struct io_u *io_u)
+void io_u_mark_depth(struct thread_data *td, struct io_u *io_u,
+ unsigned int nr)
{
int index = 0;
@@ -439,8 +440,8 @@
break;
}
- td->ts.io_u_map[index]++;
- td->ts.total_io_u[io_u->ddir]++;
+ 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)