]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
block: reset bi_iter.bi_done after splitting bio
authorGreg Edwards <gedwards@ddn.com>
Thu, 26 Jul 2018 18:39:37 +0000 (14:39 -0400)
committerStefan Bader <stefan.bader@canonical.com>
Fri, 1 Mar 2019 13:20:54 +0000 (14:20 +0100)
commit484da3855c79092b53e1e4e89e536c98c531b0d2
treec7644eaad92f67172791f181ef551f8e80f4c88b
parent92fba2499155b8027efd82a738d527ed342b2218
block: reset bi_iter.bi_done after splitting bio

BugLink: http://bugs.launchpad.net/bugs/1815234
commit 5151842b9d8732d4cbfa8400b40bff894f501b2f upstream.

After the bio has been updated to represent the remaining sectors, reset
bi_done so bio_rewind_iter() does not rewind further than it should.

This resolves a bio_integrity_process() failure on reads where the
original request was split.

Fixes: 63573e359d05 ("bio-integrity: Restore original iterator on verify stage")
Signed-off-by: Greg Edwards <gedwards@ddn.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
block/bio.c