aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStuart Hayes <[email protected]>2024-08-22 15:28:05 -0500
committerGreg Kroah-Hartman <[email protected]>2024-09-03 13:06:43 +0200
commitba82e10c3c6b5b5d2c8279a8bd0dae5c2abaacfc (patch)
tree410c25f92c9dd89e2b7cc10651324fc0dbd7bcd7
parent8064952c65045f05ee2671fe437770e50c151776 (diff)
nvme-pci: Make driver prefer asynchronous shutdown
Set the driver default to enable asynchronous shutdown. Signed-off-by: Stuart Hayes <[email protected]> Signed-off-by: David Jeffery <[email protected]> Reviewed-by: Sagi Grimberg <[email protected]> Reviewed-by: Christoph Hellwig <[email protected]> Reviewed-by: Keith Busch <[email protected]> Tested-by: Keith Busch <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
-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