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-m68k, linux-mmc, linux-nvme, linux-s390, linuxppc-dev, nvdimm
Reply to
Hannes Reinecke, 2021-05-23
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.
Thread (76 messages) 76 messages, 8 authors, last reply 2021-06-07
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help