[PATCH 1/2] nvme: check duplicate unique identifiers in order

Keith Busch kbusch at kernel.org
Tue Jun 24 08:16:37 PDT 2025


On Mon, May 12, 2025 at 10:12:29AM -0600, Keith Busch wrote:
> On Mon, May 12, 2025 at 11:18:58AM -0400, John Meneghini wrote:
> > On 5/9/25 11:33 AM, Keith Busch wrote:
> > 
> > > If those are not unique, they need to be blanked out to make sure we don't
> > > expose these on the namespace's sysfs attributes.
> > 
> > OK, we can add another patch that blanks out the lower precedent/invalid IDs.
> > 
> > Will that work?
> 
> I think you'd have to blank out the non-unique ones, otherwise the
> driver would export them.
> 
> And while I think that might work, this proposal didn't go over so well
> last time it came up:
> 
> https://lore.kernel.org/linux-nvme/20250414111916.GB13225@lst.de/

I've recently encountered some devices with this behavior, from machines
hosted by various cloud providers. I had to pull in something
out-of-tree like the patch here just to get things going. I think we
should have the kernel discard lower priority fields.



More information about the Linux-nvme mailing list