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
..
2021-05-14 09:44:24 +02:00
2021-05-19 10:08:29 +02:00
2021-05-19 10:08:30 +02:00
2021-04-10 13:34:30 +02:00
2020-12-30 11:51:26 +01:00
2021-04-07 14:47:39 +02:00
2021-04-16 11:46:39 +02:00