Thread (75 messages) 75 messages, 8 authors, 2021-06-07

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

From: Luis Chamberlain <mcgrof@kernel.org>
Date: 2021-05-21 17:28:47
Also in: dm-devel, linux-bcache, linux-block, linux-m68k, linux-nvme, linux-raid, linux-s390, linuxppc-dev, nvdimm

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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help