[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <635971f1-1797-c343-a0c0-5a71336548a5@huaweicloud.com>
Date: Mon, 11 Aug 2025 09:04:13 +0800
From: Yu Kuai <yukuai1@...weicloud.com>
To: Christoph Hellwig <hch@...radead.org>,
Zheng Qixing <zhengqixing@...weicloud.com>
Cc: axboe@...nel.dk, linux-block@...r.kernel.org,
linux-kernel@...r.kernel.org, yi.zhang@...wei.com, yangerkun@...wei.com,
houtao1@...wei.com, zhengqixing@...wei.com, lilingfeng3@...wei.com,
nilay@...ux.ibm.com, "yukuai (C)" <yukuai3@...wei.com>
Subject: Re: [PATCH v2] block: fix kobject double initialization in add_disk
Hi,
在 2025/08/10 23:08, Christoph Hellwig 写道:
> On Fri, Aug 08, 2025 at 01:36:09PM +0800, Zheng Qixing wrote:
>> From: Zheng Qixing <zhengqixing@...wei.com>
>>
>> Device-mapper can call add_disk() multiple times for the same gendisk
>> due to its two-phase creation process (dm create + dm load).
>
> We'll need to fix that, instead of adding complex workarounds in the
> block layer for something that should not happen.
>
AFAIK, a thorough will require complex refactor in the device mapper,
I feel it's better to fix the regression the easy way first, and it's
better for backport. Or do you have any suggestions how to fix this?
Thanks,
Kuai
>
> .
>
Powered by blists - more mailing lists