Skip to content

nvme: check identifiers in order of precedence

Bryan Gurney linux-nvme 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 10 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2nvme: check duplicate unique identifiers in orderdrivers/nvme/host/core.c+23 -910 replies
2/2nvme: print warning on non-unique namespace identifierdrivers/nvme/host/core.c+12 -30 replies

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchJohn Meneghini
1/2R-b
2/2R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/2] nvme: check identifiers in order of precedence

After commit e2724cb9f0c40 ("nvme: fix the check for duplicate unique identifiers"), some users are seeing a regression where namespaces on a PCI-Express NVMe SSD supporting namespace management are failing to have device nodes created, with the kernel reporting the error "duplicate IDs in subsystem", despite having at least one unique identifier:

nvme0n1:nguid   : 36434430528018200025384100000001   
nvme0n2:nguid   : 36434430528018200025384100000002
nvme0n3:nguid   : 36434430528018200025384100000003   
nvme0n4:nguid   : 36434430528018200025384100000004
nvme0n5:nguid   : 36434430528018200025384100000005   
nvme0n1:eui64   : 00253898110036df
nvme0n2:eui64   : 00253898110036df
nvme0n3:eui64   : 00253898110036df
nvme0n4:eui64   : 00253898110036df
nvme0n5:eui64   : 00253898110036df

This patch set ensures that there is a unique identifier, in the order of precedence specified by the NVMe specification (UUID, then NGUID, then EUI64). This avoids the issue that has been reported by customers, on multiple drive models, where the old algorithm would impose too stringent of a check, as many drives will report a unique NGUID value, and a non-unique EUI64 value.

This patch set has been tested by an affected customer of Red Hat Enterprise Linux, and was verified to have restored the creation of the device nodes of NVMe namespaces on drives with the affected firmware.

Bryan Gurney (2):
nvme: check duplicate unique identifiers in order
nvme: print warning on non-unique namespace identifier

 drivers/nvme/host/core.c | 41 +++++++++++++++++++++++++++++++---------
 1 file changed, 32 insertions(+), 9 deletions(-)
Signature · 1 line
2.49.0