]> www.infradead.org Git - users/jedix/linux-maple.git/commit
NVMe: Shutdown controller only for power-off
authorKeith Busch <keith.busch@intel.com>
Tue, 12 Jan 2016 21:41:18 +0000 (14:41 -0700)
committerChuck Anderson <chuck.anderson@oracle.com>
Thu, 1 Jun 2017 20:40:56 +0000 (13:40 -0700)
commitbaee8c128ab2f4496364024dd2a3545cef741553
treea3032541f761912cb0c7a827c0ac7ea81c484ebe
parentdcc7acc65f9822af67d4a31d00665792620b1f19
NVMe: Shutdown controller only for power-off

We don't need to shutdown a controller for a reset. A controller in a
shutdown state may take longer to become ready than one that was simply
disabled. This patch has the driver shut down a controller only if the
device is about to be powered off or being removed. When taking the
controller down for a reset reason, the controller will be disabled
instead.

Function names have been updated in this patch to reflect their changed
semantics.

Signed-off-by: Keith Busch <keith.busch@intel.com>
Reviewed-by: Sagi Grimberg <sagig@mellanox.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
(cherry picked from commit a5cdb68c2c10f0865122656833cd07636a4143ee)

Orabug: 25130845

Signed-off-by: Ashok Vairavan <ashok.vairavan@oracle.com>
Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/nvme/host/pci.c