summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2020-08-10 21:40:59 -0600
committerJens Axboe <axboe@kernel.dk>2020-08-10 21:40:59 -0600
commitcb7d7abbab67e03c901bfaf9517e0cae40a548bf (patch)
tree39974fec0aea876cac5c182301f91e39e860a27f
parent9bf4653293a4c534f5da1b7a0302e15bd530b967 (diff)
downloadfio-cb7d7abbab67e03c901bfaf9517e0cae40a548bf.tar.gz
fio-cb7d7abbab67e03c901bfaf9517e0cae40a548bf.tar.bz2
io_u: set io_u->verify_offset in fill_io_u()
This is arguably saner than the previous fix, since it also catches cases where io_u->offset is adjusted later on. Hopefully that's it... Fixes: 4fff54ccba73 ("verify: use origina offset for verification") Signed-off-by: Jens Axboe <axboe@kernel.dk>
-rw-r--r--io_u.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/io_u.c b/io_u.c
index d54cf2fb..dbb0a6f8 100644
--- a/io_u.c
+++ b/io_u.c
@@ -966,6 +966,7 @@ static int fill_io_u(struct thread_data *td, struct io_u *io_u)
out:
dprint_io_u(io_u, "fill");
+ io_u->verify_offset = io_u->offset;
td->zone_bytes += io_u->buflen;
return 0;
}