summaryrefslogtreecommitdiff
path: root/block/blk.h
diff options
context:
space:
mode:
authorYu Kuai <yukuai3@huawei.com>2023-02-17 10:21:59 +0800
committerJens Axboe <axboe@kernel.dk>2023-02-17 06:15:57 -0700
commit0f77b29ad14e34a89961f32edc87b92db623bb37 (patch)
treef8e81d0119bb4a11d57a9868022d690b694e91e1 /block/blk.h
parent9ec041ea40dbc6425c0ee6ae15786e5ab1d6aad6 (diff)
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.h2
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);