]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
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)
committerRoxana Nicolescu <roxana.nicolescu@canonical.com>
Wed, 17 May 2023 11:33:06 +0000 (13:33 +0200)
commit7e10f3017bab599c1d1878a45f565315802b6b58
treeab4e670694b46ded32e68d3a3cbffb735ebde311
parentc42e99e63e8ddc4cb8aea2607180d231bd021331
block: Revert "block: Do not reread partition table on exclusively open device"

BugLink: https://bugs.launchpad.net/bugs/2016875
[ 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>
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
block/blk.h
block/genhd.c
block/ioctl.c