]> git.baikalelectronics.ru Git - kernel.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 17 Mar 2023 07:50:20 +0000 (08:50 +0100)
commit7f8eef7abbc3080004bc38d5fe6332ea8d12780d
tree48ffceb2676cba51c871d4bdcb8f2b22c9c8b7de
parent39fdd19eb3a1bef09a729229d1a40e9baee9448b
block: Revert "block: Do not reread partition table on exclusively open device"

[ Upstream commit f56f15bc41355235e772c93df12fc2dd912180f5 ]

This reverts commit 97484fe6a1451794f424d4955721bd864402ee77.

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: 92ef14daac46 ("block: fix scan partition for exclusively open device again")
Signed-off-by: Sasha Levin <sashal@kernel.org>
block/blk.h
block/genhd.c
block/ioctl.c