[PATCH 1/1] nvme: correctly account for namespace head reference counter
Christoph Hellwig
hch at lst.de
Tue Jun 24 23:10:40 PDT 2025
On Tue, Jun 24, 2025 at 07:54:29PM +0530, Nilay Shroff wrote:
> Thanks! I'd update the above typo, however today I was testing some code
> after disabling CONFIG_NVME_MULTIPATH and I realized that although the
> namespace head (ns->head) is still created, its associated head->disk is
> not initialized in this configuration.
Yes.
> So I'll send out patchv2 with the above changes.
Thanks! Please also add a comment to nvme_alloc_ns as the logic is
fairly complex now and future readers will benefit from an explanation.
More information about the Linux-nvme
mailing list