Skip to content
Snippets Groups Projects
Commit 144587a8 authored by Yu Kuai's avatar Yu Kuai Committed by Greg Kroah-Hartman
Browse files

block: Revert "block: Do not reread partition table on exclusively open device"


[ Upstream commit 0f77b29a ]

This reverts commit 36369f46.

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: default avatarYu Kuai <yukuai3@huawei.com>
Acked-by: default avatarJan Kara <jack@suse.cz>
Link: https://lore.kernel.org/r/20230217022200.3092987-2-yukuai1@huaweicloud.com


Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
Stable-dep-of: e5cfefa9 ("block: fix scan partition for exclusively open device again")
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent a49bf05d
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment