linux/drivers/nvme/host
Sagi Grimberg 5ab25a32cd nvme: don't intialize hwmon for discovery controllers
Discovery controllers usually don't support smart log page command.
So when we connect to the discovery controller we see this warning:
nvme nvme0: Failed to read smart log (error 24577)
nvme nvme0: new ctrl: NQN "nqn.2014-08.org.nvmexpress.discovery", addr 192.168.123.1:8009
nvme nvme0: Removing ctrl: NQN "nqn.2014-08.org.nvmexpress.discovery"

Introduce a new helper to understand if the controller is a discovery
controller and use this helper to skip nvme_init_hwmon (also use it in
other places that we check if the controller is a discovery controller).

Fixes: 400b6a7b13 ("nvme: Add hardware monitoring support")
Signed-off-by: Sagi Grimberg <sagi@grimberg.me>
Signed-off-by: Christoph Hellwig <hch@lst.de>
2021-01-14 20:27:35 +01:00
..
core.c nvme: don't intialize hwmon for discovery controllers 2021-01-14 20:27:35 +01:00
fabrics.c nvme-fabrics: reject I/O to offline device 2020-12-01 20:36:37 +01:00
fabrics.h nvme-fabrics: reject I/O to offline device 2020-12-01 20:36:37 +01:00
fault_inject.c
fc.c nvme-fc: avoid calling _nvme_fc_abort_outstanding_ios from interrupt context 2021-01-06 10:30:36 +01:00
fc.h
hwmon.c
Kconfig
lightnvm.c nvme: split nvme_alloc_request() 2020-12-01 20:36:35 +01:00
Makefile
multipath.c for-5.11/drivers-2020-12-14 2020-12-16 13:09:32 -08:00
nvme.h nvme: remove the unused status argument from nvme_trace_bio_complete 2021-01-06 10:30:37 +01:00
pci.c nvme: avoid possible double fetch in handling CQE 2021-01-06 10:30:37 +01:00
rdma.c RDMA 5.11 pull request 2020-12-16 13:42:26 -08:00
tcp.c nvme-tcp: fix possible data corruption with bio merges 2021-01-14 20:27:35 +01:00
trace.c
trace.h
zns.c nvme: export zoned namespaces without Zone Append support read-only 2020-12-01 20:36:38 +01:00