]> git.baikalelectronics.ru Git - kernel.git/commit
nvme: add a quirk to disable namespace identifiers
authorChristoph Hellwig <hch@lst.de>
Mon, 11 Apr 2022 06:05:27 +0000 (08:05 +0200)
committerChristoph Hellwig <hch@lst.de>
Fri, 15 Apr 2022 04:56:17 +0000 (06:56 +0200)
commiteef4c2f717859e7fe2b251d771b6aa8657e3a62f
tree53f671cdc364ca90ef19c3b5aeb88da9a49fd429
parente2c82e005dee927a9a160ae1ae8034f3df8744bf
nvme: add a quirk to disable namespace identifiers

Add a quirk to disable using and exporting namespace identifiers for
controllers where they are broken beyond repair.

The most directly visible problem with non-unique namespace identifiers
is that they break the /dev/disk/by-id/ links, with the link for a
supposedly unique identifier now pointing to one of multiple possible
namespaces that share the same ID, and a somewhat random selection of
which one actually shows up.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Keith Busch <kbusch@kernel.org>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Reviewed-by: Chaitanya Kulkarni <kch@nvidia.com>
drivers/nvme/host/core.c
drivers/nvme/host/nvme.h