linux-stable/drivers/nvme/host
Christoph Hellwig e2724cb9f0 nvme: fix the check for duplicate unique identifiers
nvme_subsys_check_duplicate_ids should needs to return an error if any of
the identifiers matches, not just if all of them match.  But it does not
need to and should not look at the CSI value for this sanity check.

Rewrite the logic to be separate from nvme_ns_ids_equal and optimize it
by reducing duplicate checks for non-present identifiers.

Fixes: ed754e5dee ("nvme: track shared namespaces")
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Keith Busch <kbusch@kernel.org>
Reviewed-by: Chaitanya Kulkarni <kch@nvidia.com>
2022-02-28 13:45:07 +02:00
..
constants.c nvme: add verbose error logging 2022-02-28 13:45:06 +02:00
core.c nvme: fix the check for duplicate unique identifiers 2022-02-28 13:45:07 +02:00
fabrics.c nvme-fabrics: remove unnecessary braces for case 2022-02-28 13:45:04 +02:00
fabrics.h nvme: display correct subsystem NQN 2021-10-20 19:16:02 +02:00
fault_inject.c block: remove the ->rq_disk field in struct request 2021-11-29 06:41:29 -07:00
fc.c nvme: add a helper to initialize connect_q 2022-02-28 13:45:06 +02:00
fc.h nvme-fc: Update header and host for common definitions for LS handling 2020-05-09 16:18:33 -06:00
hwmon.c nvme-hwmon: Return error code when registration fails 2021-03-05 13:41:03 +01:00
ioctl.c nvme: add vectored-io support for user-passthrough 2022-02-28 13:45:06 +02:00
Kconfig nvme: add verbose error logging 2022-02-28 13:45:06 +02:00
Makefile nvme: add verbose error logging 2022-02-28 13:45:06 +02:00
multipath.c for-5.17/drivers-2022-01-11 2022-01-12 10:35:23 -08:00
nvme.h nvme: remove nssa from struct nvme_ctrl 2022-02-28 13:45:06 +02:00
pci.c nvme-pci: add the IGNORE_DEV_SUBNQN quirk for Intel P4500/P4600 SSDs 2022-01-27 08:17:14 +01:00
rdma.c nvme: add a helper to initialize connect_q 2022-02-28 13:45:06 +02:00
tcp.c nvme: add a helper to initialize connect_q 2022-02-28 13:45:06 +02:00
trace.c nvme: add set feature tracing support 2021-08-16 14:42:23 +02:00
trace.h block: remove the ->rq_disk field in struct request 2021-11-29 06:41:29 -07:00
zns.c nvme: report write pointer for a full zone as zone start + zone len 2021-12-06 08:52:08 +01:00