Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
block: sync part's ->bd_has_submit_bio with disk's
submit_bio() always uses bio->bi_bdev->bd_has_submit_bio to decide if disk's ->submit_bio() is called, and bio->bi_bdev could point to one partition device. So we have to sync part bdev's ->bd_has_submit_bio with disk's. Reported-by: Changhui Zhong <[email protected]> Link: https://lore.kernel.org/linux-block/[email protected]/T/#t Fixes: 9f4107b ("block: store bdev->bd_disk->fops->submit_bio state in bdev") Signed-off-by: Ming Lei <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jens Axboe <[email protected]>
- Loading branch information