aboutsummaryrefslogtreecommitdiff
path: root/block/blk.h
diff options
context:
space:
mode:
authorGravatar Dmitry Monakhov <dmonakhov@openvz.org> 2017-06-29 11:31:15 -0700
committerGravatar Jens Axboe <axboe@kernel.dk> 2017-07-03 16:56:29 -0600
commit63573e359d052e506d305c263576499f06355985 (patch)
treed7aa2bcea3e447cce87ab40611e2055a4d628622 /block/blk.h
parentbio: add bvec_iter rewind API (diff)
downloadlinux-63573e359d052e506d305c263576499f06355985.tar.gz
linux-63573e359d052e506d305c263576499f06355985.tar.bz2
linux-63573e359d052e506d305c263576499f06355985.zip
bio-integrity: Restore original iterator on verify stage
Currently ->verify_fn not woks at all because at the moment it is called bio->bi_iter.bi_size == 0, so we do not iterate integrity bvecs at all. In order to perform verification we need to know original data vector, with new bvec rewind API this is trivial. testcase: https://github.com/dmonakhov/xfstests/commit/3c6509eaa83b9c17cd0bc95d73fcdd76e1c54a85 Reviewed-by: Hannes Reinecke <hare@suse.com> Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Dmitry Monakhov <dmonakhov@openvz.org> [hch: adopted for new status values] Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block/blk.h')
0 files changed, 0 insertions, 0 deletions