]> git.baikalelectronics.ru Git - 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)
committerJens Axboe <axboe@kernel.dk>
Fri, 27 Jul 2018 15:10:34 +0000 (09:10 -0600)
commitc8f3ec6dace320d22dd8a8161f1d8e4c2b0d3ad3
tree13b3c4f70d1b2e19d6a787f2c59ccb0cad0301a0
parent1ad64bf8d262d2f53cea9480cdd31e8c2375c2c6
block: reset bi_iter.bi_done after splitting bio

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: b04c57cf1cef ("bio-integrity: Restore original iterator on verify stage")
Signed-off-by: Greg Edwards <gedwards@ddn.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/bio.c