Re: [PATCH v2] block: fix kobject double initialization in add_disk
From: Christoph Hellwig
Date: Sun Aug 10 2025 - 11:08:54 EST
On Fri, Aug 08, 2025 at 01:36:09PM +0800, Zheng Qixing wrote:
> From: Zheng Qixing <zhengqixing@xxxxxxxxxx>
>
> 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.