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 <email@example.com>
Reviewed-by: Johannes Thumshirn <firstname.lastname@example.org>
Reviewed-by: Christoph Hellwig <email@example.com>
Signed-off-by: Sagi Grimberg <firstname.lastname@example.org>
Signed-off-by: Jens Axboe <email@example.com>
Signed-off-by: Paul Gortmaker <firstname.lastname@example.org>
1 file changed