]> git.baikalelectronics.ru Git - kernel.git/commit
block: inherit BIO_REMAPPED when cloning bios
authorChristoph Hellwig <hch@lst.de>
Tue, 26 Jan 2021 14:33:08 +0000 (15:33 +0100)
committerJens Axboe <axboe@kernel.dk>
Tue, 26 Jan 2021 15:50:01 +0000 (08:50 -0700)
commit8ba808fa862a625fec95a4d97e9cc896b6e59dc9
treeb6951d795c88d5e0a82c265db6005e2609b1feb7
parentf9cc22ef30235952a7606965acb8e34257e0213f
block: inherit BIO_REMAPPED when cloning bios

Cloned bios are can be used to on the same device, in which case we need
to inherit the BIO_REMAPPED flag to avoid a double partition remap.  When
the cloned bios are used on another device, bio_set_dev will clear the flag.

Fixes: 15f21b295a4d ("block: store a block_device pointer in struct bio")
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/bio.c
block/blk-crypto-fallback.c
block/bounce.c