summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStuart Hayes <stuart.w.hayes@gmail.com>2024-08-22 23:28:05 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2024-09-03 14:06:43 +0300
commitba82e10c3c6b5b5d2c8279a8bd0dae5c2abaacfc (patch)
tree410c25f92c9dd89e2b7cc10651324fc0dbd7bcd7
parent8064952c65045f05ee2671fe437770e50c151776 (diff)
downloadlinux-ba82e10c3c6b5b5d2c8279a8bd0dae5c2abaacfc.tar.xz
nvme-pci: Make driver prefer asynchronous shutdown
Set the driver default to enable asynchronous shutdown. Signed-off-by: Stuart Hayes <stuart.w.hayes@gmail.com> Signed-off-by: David Jeffery <djeffery@redhat.com> Reviewed-by: Sagi Grimberg <sagi@grimberg.me> Reviewed-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Keith Busch <kbusch@kernel.org> Tested-by: Keith Busch <kbusch@kernel.org> Link: https://lore.kernel.org/r/20240822202805.6379-5-stuart.w.hayes@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/nvme/host/pci.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/nvme/host/pci.c b/drivers/nvme/host/pci.c
index 6cd9395ba9ec..58d0d517fead 100644
--- a/drivers/nvme/host/pci.c
+++ b/drivers/nvme/host/pci.c
@@ -3580,6 +3580,7 @@ static struct pci_driver nvme_driver = {
.shutdown = nvme_shutdown,
.driver = {
.probe_type = PROBE_PREFER_ASYNCHRONOUS,
+ .async_shutdown_enable = true,
#ifdef CONFIG_PM_SLEEP
.pm = &nvme_dev_pm_ops,
#endif