diff options
| author | Yu Kuai <yukuai3@huawei.com> | 2023-02-17 10:21:59 +0800 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2023-03-17 08:50:20 +0100 |
| commit | 573e58f5e7e136eb82f9b4a708db87839cb7c91e (patch) | |
| tree | 48ffceb2676cba51c871d4bdcb8f2b22c9c8b7de /block/blk.h | |
| parent | 783c225e910fa5e0ef7bd9de88d32c0787e04e95 (diff) | |
| download | linux-573e58f5e7e136eb82f9b4a708db87839cb7c91e.tar.gz linux-573e58f5e7e136eb82f9b4a708db87839cb7c91e.tar.bz2 linux-573e58f5e7e136eb82f9b4a708db87839cb7c91e.zip | |
block: Revert "block: Do not reread partition table on exclusively open device"
[ Upstream commit 0f77b29ad14e34a89961f32edc87b92db623bb37 ]
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>
Stable-dep-of: e5cfefa97bcc ("block: fix scan partition for exclusively open device again")
Signed-off-by: Sasha Levin <sashal@kernel.org>
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 8b75a95b28d6..a186ea20f39d 100644 --- a/block/blk.h +++ b/block/blk.h @@ -436,7 +436,7 @@ static inline struct kmem_cache *blk_get_queue_kmem_cache(bool srcu) } struct request_queue *blk_alloc_queue(int node_id, bool alloc_srcu); -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); |
