summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGwendal Grignou <gwendal@chromium.org>2015-02-08 19:53:20 -0800
committerMohamad Ayyash <mkayyash@google.com>2015-03-06 17:58:16 -0800
commit7318762572051fc71be15d75dd3fb05e88f70717 (patch)
treeef46dc2b6ab80da9e3db417d08bd125878cb8cc0
parent1b7ab803d8914d355bbb61e81e3d745592c04fce (diff)
downloadfio-7318762572051fc71be15d75dd3fb05e88f70717.tar.gz
verify: Fix latency log for verify commands.
When commands when requeued for the verify operation, their start time was not reset, resulting in bogus latency graphs. Signed-off-by: Gwendal Grignou <gwendal@chromium.org> Signed-off-by: Jens Axboe <axboe@fb.com>
-rw-r--r--backend.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/backend.c b/backend.c
index 7ec8d2a3..0f6e4259 100644
--- a/backend.c
+++ b/backend.c
@@ -565,6 +565,8 @@ static void do_verify(struct thread_data *td, uint64_t verify_bytes)
io_u->end_io = verify_io_u;
ddir = io_u->ddir;
+ if (!td->o.disable_slat)
+ fio_gettime(&io_u->start_time, NULL);
ret = td_io_queue(td, io_u);
switch (ret) {