提交 33b040f7 编写于 作者: Y Yu Kuai 提交者: Yongqiang Liu

block: Revert "block: check 'bd_super' before rescanning partition"

hulk inclusion
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I6MRB5
CVE: NA

--------------------------------

This reverts commit 00f20694.

Mainline solution will be backported in following patches.
Signed-off-by: NYu Kuai <yukuai3@huawei.com>
Reviewed-by: NHou Tao <houtao1@huawei.com>
Signed-off-by: NYongqiang Liu <liuyongqiang13@huawei.com>
上级 d0acf215
...@@ -464,7 +464,7 @@ static int drop_partitions(struct gendisk *disk, struct block_device *bdev) ...@@ -464,7 +464,7 @@ static int drop_partitions(struct gendisk *disk, struct block_device *bdev)
struct hd_struct *part; struct hd_struct *part;
int res; int res;
if (bdev->bd_part_count || bdev->bd_super) if (bdev->bd_part_count)
return -EBUSY; return -EBUSY;
res = invalidate_partition(disk, 0); res = invalidate_partition(disk, 0);
if (res) if (res)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册