diff options
author | Ming Lei <ming.lei@redhat.com> | 2023-04-25 05:41:54 +0200 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2023-04-25 15:36:02 +0200 |
commit | 38c8e3dfb2a1be863b7f5aad7755d5e9727da8a5 (patch) | |
tree | 930d91b6701d2c75013186514796cdde87534bef /drivers/md | |
parent | block: Cleanup set_capacity()/bdev_set_nr_sectors() (diff) | |
download | linux-38c8e3dfb2a1be863b7f5aad7755d5e9727da8a5.tar.xz linux-38c8e3dfb2a1be863b7f5aad7755d5e9727da8a5.zip |
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 <czhong@redhat.com>
Link: https://lore.kernel.org/linux-block/ZEdItaPqif8fp85H@ovpn-8-24.pek2.redhat.com/T/#t
Fixes: 9f4107b07b17 ("block: store bdev->bd_disk->fops->submit_bio state in bdev")
Signed-off-by: Ming Lei <ming.lei@redhat.com>
Link: https://lore.kernel.org/r/20230425034154.110099-1-ming.lei@redhat.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/md')
0 files changed, 0 insertions, 0 deletions