diff options
author | Yu Kuai <yukuai3@huawei.com> | 2023-02-17 03:21:59 +0100 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2023-02-17 14:15:57 +0100 |
commit | 0f77b29ad14e34a89961f32edc87b92db623bb37 (patch) | |
tree | f8e81d0119bb4a11d57a9868022d690b694e91e1 /block/blk.h | |
parent | sed-opal: add support flag for SUM in status ioctl (diff) | |
download | linux-0f77b29ad14e34a89961f32edc87b92db623bb37.tar.xz linux-0f77b29ad14e34a89961f32edc87b92db623bb37.zip |
block: Revert "block: Do not reread partition table on exclusively open device"
This reverts commit 36369f46e91785688a5f39d7a5590e3f07981316.
This patch can't fix the problem in a corner case that device can be
opened exclusively after the checking and before blkdev_get_by_dev().
We'll use a new solution to fix the problem in the next patch, and
the new solution doesn't need to change apis.
Signed-off-by: Yu Kuai <yukuai3@huawei.com>
Acked-by: Jan Kara <jack@suse.cz>
Link: https://lore.kernel.org/r/20230217022200.3092987-2-yukuai1@huaweicloud.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block/blk.h')
-rw-r--r-- | block/blk.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/block/blk.h b/block/blk.h index 4c3b3325219a..e835f21d48af 100644 --- a/block/blk.h +++ b/block/blk.h @@ -427,7 +427,7 @@ int bio_add_hw_page(struct request_queue *q, struct bio *bio, struct request_queue *blk_alloc_queue(int node_id); -int disk_scan_partitions(struct gendisk *disk, fmode_t mode, void *owner); +int disk_scan_partitions(struct gendisk *disk, fmode_t mode); int disk_alloc_events(struct gendisk *disk); void disk_add_events(struct gendisk *disk); |