block: Revert "block: Do not reread partition table on exclusively open device"
authorYu Kuai <yukuai3@huawei.com>
Fri, 17 Feb 2023 02:21:59 +0000 (10:21 +0800)
committerJens Axboe <axboe@kernel.dk>
Fri, 17 Feb 2023 13:15:57 +0000 (06:15 -0700)
commit0f77b29ad14e34a89961f32edc87b92db623bb37
treef8e81d0119bb4a11d57a9868022d690b694e91e1
parent9ec041ea40dbc6425c0ee6ae15786e5ab1d6aad6
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>
block/blk.h
block/genhd.c
block/ioctl.c