NVMe: Shutdown controller only for power-off
authorKeith Busch <keith.busch@intel.com>
Tue, 12 Jan 2016 21:41:18 +0000 (14:41 -0700)
committerJens Axboe <axboe@fb.com>
Tue, 12 Jan 2016 21:47:59 +0000 (14:47 -0700)
commita5cdb68c2c10f0865122656833cd07636a4143ee
tree50c5b0762821995b884990770a3364e22082de16
parentdb3cbfff5bcc0b9a82d8c71f00b9d60fad215871
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>
drivers/nvme/host/pci.c