X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=io_u.c;h=0ba484169d31d024a041ddfc43b3baedc4b0f193;hp=985c99b2bb7f1094ee28804bfcef060987cb3446;hb=3bec7ae05cbec8823943a9aca79871c99709ed5f;hpb=98eeabf3e54aea64363a231123aacd5b0730e051 diff --git a/io_u.c b/io_u.c index 985c99b2..0ba48416 100644 --- a/io_u.c +++ b/io_u.c @@ -410,7 +410,8 @@ out: 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 @@ void io_u_mark_depth(struct thread_data *td, struct io_u *io_u) 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)