verify: use origina offset for verification
authorJens Axboe <axboe@kernel.dk>
Tue, 11 Aug 2020 02:55:27 +0000 (20:55 -0600)
committerJens Axboe <axboe@kernel.dk>
Tue, 11 Aug 2020 02:55:27 +0000 (20:55 -0600)
commit4fff54ccba73aa59de250a0f4161b9ce3d952601
treedd0580337648fa8858094c935de5d33893fc0239
parent7d33649cc0b6a887cb2e89e5ef2632e21529f4ec
verify: use origina offset for verification

Requeued IO might have a different offset, since we increment it for
retry conditions. Store the original offset for verification purposes.

Just like we have io_u->xfer_buf/io_u->buf and
io_u->xfer_buflen/io_u->buflen, we really should be treating
io_u->offset the same. But that's a major change, so just add this
special original offset so we know that verify has it. Currently we
treat io_u->offset like we would have io_u->xfer_offset, so this just
makes io_u->verify_offset what io_u->offset should be.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_u.c
io_u.h
iolog.c
verify.c