]> git.baikalelectronics.ru Git - kernel.git/commit
block: skip bio_check_eod for partition-remapped bios
authorChristoph Hellwig <hch@lst.de>
Mon, 25 Jan 2021 18:39:57 +0000 (19:39 +0100)
committerJens Axboe <axboe@kernel.dk>
Mon, 25 Jan 2021 18:41:34 +0000 (11:41 -0700)
commit78c1adb7c60f986b9675d997604e6d8f0510b77c
tree141e4fae0a7e8490755706ba065e38abcb3fe59a
parentf90852200ba6c00ee3d4ba2934b5d189eac14cfd
block: skip bio_check_eod for partition-remapped bios

When an already remapped bio is resubmitted (e.g. by blk_queue_split),
bio_check_eod will compare the remapped bi_sector against the size
of the partition, leading to spurious I/O failures.

Skip the EOD check in this case.

Fixes: 85774780ef96 ("block: store a block_device pointer in struct bio")
Reported-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-core.c