]> Git Repo - linux.git/commit
block: reset bi_iter.bi_done after splitting bio
authorGreg Edwards <[email protected]>
Thu, 26 Jul 2018 18:39:37 +0000 (14:39 -0400)
committerJens Axboe <[email protected]>
Fri, 27 Jul 2018 15:10:34 +0000 (09:10 -0600)
commit5151842b9d8732d4cbfa8400b40bff894f501b2f
tree13b3c4f70d1b2e19d6a787f2c59ccb0cad0301a0
parent17d51b10d7773e4618bcac64648f30f12d4078fb
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: 63573e359d05 ("bio-integrity: Restore original iterator on verify stage")
Signed-off-by: Greg Edwards <[email protected]>
Signed-off-by: Jens Axboe <[email protected]>
block/bio.c
This page took 0.05169 seconds and 4 git commands to generate.