Re: [dm-devel] [PATCH 04/26] block: add a flag to make put_disk on partially initalized disks safer

Luis Chamberlain
2021-05-21T17:28:47Z

On Fri, May 21, 2021 at 07:50:54AM +0200, Christoph Hellwig wrote:
> Add a flag to indicate that __device_add_disk did grab a queue reference
> so that disk_release only drops it if we actually had it. This sort
> out one of the major pitfals with partially initialized gendisk that
> a lot of drivers did get wrong or still do.
>
> Signed-off-by: Christoph Hellwig <hch@lst.de>

Reviewed-by: Luis Chamberlain <mcgrof@kernel.org>

Luis