engine/filecreate: use clat and reads for stats
authorJens Axboe <axboe@kernel.dk>
Mon, 9 Oct 2017 19:13:13 +0000 (13:13 -0600)
committerJens Axboe <axboe@kernel.dk>
Mon, 9 Oct 2017 19:13:13 +0000 (13:13 -0600)
Fio defaults to reads, we should use the same direction as the job
though. Additionally, we must use clat latencies for tracking,
as this is a sync engine and whole latencies are logged as
completions.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
engines/filecreate.c

index d753df24c94f830b6ef581a754677a8c0212b1ff..00562c861c2be580083f60032dfc368914c8e6f3 100644 (file)
@@ -46,7 +46,7 @@ static int open_file(struct thread_data *td, struct fio_file *f)
                uint64_t nsec;
 
                nsec = ntime_since_now(&start);
-               add_lat_sample(td, DDIR_WRITE, nsec, 0, 0);
+               add_clat_sample(td, DDIR_READ, nsec, 0, 0);
        }
 
        return 0;