]> git.proxmox.com Git - mirror_ubuntu-jammy-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)
committerStefan Bader <stefan.bader@canonical.com>
Wed, 22 Jun 2022 12:22:16 +0000 (14:22 +0200)
commit84da31fc5abe3f526ae9d1387363c71db3474060
tree9f4788f9dcb1d0f0fd2310728c628ad5c5d787de
parent9552d35d2914e78afee41c61cc819e1080e9958b
nvme: add a quirk to disable namespace identifiers

BugLink: https://bugs.launchpad.net/bugs/1972905
[ Upstream commit 00ff400e6deee00f7b15e200205b2708b63b8cf6 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
drivers/nvme/host/core.c
drivers/nvme/host/nvme.h