[PATCH 1/1] nvme: correctly account for namespace head reference counter

Nilay Shroff nilay at linux.ibm.com
Tue Jun 24 23:12:55 PDT 2025



On 6/25/25 11:40 AM, Christoph Hellwig wrote:
> 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.
> 
Yeah will do the needful.

Thanks,
--Nilay




More information about the Linux-nvme mailing list