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

Luis Chamberlain mcgrof at kernel.org
Fri May 21 10:28:41 PDT 2021


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 at lst.de>

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

  Luis



More information about the Linux-nvme mailing list