io_u: don't add slat samples if we are in ramp time
authorJens Axboe <axboe@fb.com>
Tue, 7 Mar 2017 17:18:53 +0000 (10:18 -0700)
committerJens Axboe <axboe@fb.com>
Tue, 7 Mar 2017 17:18:53 +0000 (10:18 -0700)
Signed-off-by: Jens Axboe <axboe@fb.com>
io_u.c

diff --git a/io_u.c b/io_u.c
index 46d9731..e12382b 100644 (file)
--- a/io_u.c
+++ b/io_u.c
@@ -1994,7 +1994,7 @@ int io_u_queued_complete(struct thread_data *td, int min_evts)
  */
 void io_u_queued(struct thread_data *td, struct io_u *io_u)
 {
-       if (!td->o.disable_slat) {
+       if (!td->o.disable_slat && ramp_time_over(td)) {
                unsigned long slat_time;
 
                slat_time = utime_since(&io_u->start_time, &io_u->issue_time);