Re: [PATCH 01/10] md: fix mddev->kobj lifetime
From: Logan Gunthorpe <logang@deltatee.com>
Date: 2022-07-18 19:48:22
Also in:
linux-block
From: Logan Gunthorpe <logang@deltatee.com>
Date: 2022-07-18 19:48:22
Also in:
linux-block
On 2022-07-18 00:34, Christoph Hellwig wrote:
Once a kobject is initialized, the containing object should not be directly freed. So delay initialization until it is added. Also remove the kobject_del call as the last put will remove the kobject as well. The explicitly delete isn't needed here, and dropping it will simplify further fixes. Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Logan Gunthorpe <logang@deltatee.com> Logan