nvme/pci: Disable on removal when disconnected
authorKeith Busch <keith.busch@intel.com>
Fri, 10 Feb 2017 23:15:49 +0000 (18:15 -0500)
committerJens Axboe <axboe@fb.com>
Wed, 22 Feb 2017 20:34:00 +0000 (13:34 -0700)
commit6db28eda266052f86a6b402422de61eeb7d2e351
tree170deac146c635873dcbee3e77ccd810830002f8
parentc5552fde102fcc3f2cf9e502b8ac90e3500d8fdf
nvme/pci: Disable on removal when disconnected

If the device is not present, the driver should disable the queues
immediately. Prior to this, the driver was relying on the watchdog timer
to kill the queues if requests were outstanding to the device, and that
just delays removal up to one second.

Signed-off-by: Keith Busch <keith.busch@intel.com>
Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Sagi Grimberg <sagi@grimberg.me>
Signed-off-by: Jens Axboe <axboe@fb.com>
drivers/nvme/host/pci.c