linux-brain/drivers/nvme/host
Christoph Hellwig 7f6a9044ff nvme: do not try to reconfigure APST when the controller is not live
commit 53fe2a30bc168db9700e00206d991ff934973cf1 upstream.

Do not call nvme_configure_apst when the controller is not live, given
that nvme_configure_apst will fail due the lack of an admin queue when
the controller is being torn down and nvme_set_latency_tolerance is
called from dev_pm_qos_hide_latency_tolerance.

Fixes: 510a405d945b("nvme: fix memory leak for power latency tolerance")
Reported-by: Peng Liu <liupeng17@lenovo.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Keith Busch <kbusch@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2021-05-19 10:08:33 +02:00
..
Kconfig nvme-tcp: fix kconfig dependency warning when !CRYPTO 2020-10-01 13:18:19 +02:00
Makefile nvme-tcp: add NVMe over TCP host driver 2018-12-13 09:58:58 +01:00
core.c nvme: do not try to reconfigure APST when the controller is not live 2021-05-19 10:08:33 +02:00
fabrics.c nvme-fabrics: don't check state NVME_CTRL_NEW for request acceptance 2020-09-17 13:47:47 +02:00
fabrics.h nvme: Remove ADMIN_ONLY state 2019-10-14 23:21:44 +09:00
fault_inject.c nvme: enable to inject errors into admin commands 2019-06-21 11:15:50 +02:00
fc.c nvme-fc: return NVME_SC_HOST_ABORTED_CMD when a command has been aborted 2021-03-30 14:35:22 +02:00
lightnvm.c lightnvm: move metadata mapping to lower level driver 2019-08-06 08:20:10 -06:00
multipath.c nvme: retrigger ANA log update if group descriptor isn't found 2021-05-14 09:44:24 +02:00
nvme.h nvme-core: add cancel tagset helpers 2021-03-07 12:20:46 +01:00
pci.c nvme-pci: don't simple map sgl when sgls are disabled 2021-05-14 09:44:25 +02:00
rdma.c nvme-rdma: fix possible hang when failing to set io queues 2021-03-24 11:26:40 +01:00
tcp.c nvme-tcp: block BH in sk state_change sk callback 2021-05-14 09:44:24 +02:00
trace.c nvme: trace: parse Get LBA Status command in detail 2019-08-29 12:55:01 -07:00
trace.h nvme-trace: print result and status in hex format 2019-06-21 11:12:37 +02:00