Re: [PATCH v2] driver/nvme/host: Support duplicated nsid for the private ns

From: hch@xxxxxx
Date: Tue Mar 15 2022 - 03:19:35 EST


On Tue, Mar 15, 2022 at 08:12:30AM +0100, hch@xxxxxx wrote:
> I looked at this a bit more and found two issues:
>
> - nvme_init_ns_head will now leak the ns_head for the private namespaces
> with potentially duplicate IDs case.
> - nvme_mpath_set_disk_name still needs to use the subsystem-wide IDA
> for the nvme instance name as the subsystem and controller ones
> could otherwise clash.
>
> Let me know what you think of this version:

Except that this had the parts to actually make it compile uncommited,
so here is the proper one:

---