]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
nvme/pci: Disable on removal when disconnected
authorKeith Busch <keith.busch@intel.com>
Fri, 10 Feb 2017 23:15:49 +0000 (18:15 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 8 Apr 2017 07:35:10 +0000 (09:35 +0200)
commite33cb9747fdfc5f057d53b01e809aec34ffc83ed
tree090c9e985e3557133503be37c0035b874cc86dc2
parent2bfe1b12a496a3dc1f3fe4e7d3cb758fa787b41f
nvme/pci: Disable on removal when disconnected

commit 6db28eda266052f86a6b402422de61eeb7d2e351 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/nvme/host/pci.c