]> 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)
commitb00938180b74079d60b92aee2f891946cf6c042d
tree13b3c4f70d1b2e19d6a787f2c59ccb0cad0301a0
parentcd0613089ea53fd7f7498f598cebf09c36ef6e87
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: b0db7c4a4275 ("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