Flexible I/O Tester development
 help / color / mirror / Atom feed
* [PATCH] verify: Fix latency log for verify commands.
@ 2015-02-09  3:53 Gwendal Grignou
  2015-02-09  9:39 ` Andrey Kuzmin
  2015-02-09 15:16 ` Jens Axboe
  0 siblings, 2 replies; 7+ messages in thread
From: Gwendal Grignou @ 2015-02-09  3:53 UTC (permalink / raw)
  To: axboe; +Cc: fio, Gwendal Grignou

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>
---
 backend.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/backend.c b/backend.c
index 7ec8d2a..0f6e425 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) {
-- 
2.2.0.rc0.207.ga3a616c



^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2015-02-09 15:59 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-02-09  3:53 [PATCH] verify: Fix latency log for verify commands Gwendal Grignou
2015-02-09  9:39 ` Andrey Kuzmin
2015-02-09 15:17   ` Jens Axboe
2015-02-09 15:25     ` Andrey Kuzmin
2015-02-09 15:27       ` Jens Axboe
2015-02-09 15:59         ` Andrey Kuzmin
2015-02-09 15:16 ` Jens Axboe

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox