summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2020-08-10 21:31:01 -0600
committerJens Axboe <axboe@kernel.dk>2020-08-10 21:31:01 -0600
commit9bf4653293a4c534f5da1b7a0302e15bd530b967 (patch)
tree112324e3d9787916391bb49a2ea7c0664dbf474e
parent4fff54ccba73aa59de250a0f4161b9ce3d952601 (diff)
downloadfio-9bf4653293a4c534f5da1b7a0302e15bd530b967.tar.gz
fio-9bf4653293a4c534f5da1b7a0302e15bd530b967.tar.bz2
io_u: get_next_offset() should always set io_u->verify_offset
Don't assume that the original get_next_block() is the only place that sets it. Set it unconditionally at the success exit path of get_next_offset(). 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 d8d60e05..d54cf2fb 100644
--- a/io_u.c
+++ b/io_u.c
@@ -507,6 +507,7 @@ static int get_next_offset(struct thread_data *td, struct io_u *io_u,
return 1;
}
+ io_u->verify_offset = io_u->offset;
return 0;
}