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

Re: [PATCH 18/26] nvme-multipath: convert to blk_alloc_disk/blk_cleanup_disk

From: Christoph Hellwig <hch@lst.de>
Date: 2021-05-24 07:29:57
Also in: dm-devel, linux-bcache, linux-block, linux-mmc, linux-nvme, linux-raid, linux-s390, linuxppc-dev, nvdimm

On Sun, May 23, 2021 at 10:20:27AM +0200, Hannes Reinecke wrote:
What about the check for GENHD_FL_UP a bit further up in line 766?
Can this still happen with the new allocation scheme, ie is there still a 
difference in lifetime between ->disk and ->disk->queue?
Yes, nvme_free_ns_head can still be called before device_add_disk was
called for an allocated nshead gendisk during error handling of the
setup path.  There is still a difference in the lifetime in that they
are separately refcounted, but it does not matter to the driver.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help