From 9bf4653293a4c534f5da1b7a0302e15bd530b967 Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Mon, 10 Aug 2020 21:31:01 -0600 Subject: [PATCH] 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 --- io_u.c | 1 + 1 file changed, 1 insertion(+) 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; } -- 2.25.1