]> git.baikalelectronics.ru Git - kernel.git/commit
NVMe: Poll device while still active during remove
authorKeith Busch <keith.busch@intel.com>
Thu, 11 Feb 2016 20:05:43 +0000 (13:05 -0700)
committerJens Axboe <axboe@fb.com>
Fri, 12 Feb 2016 15:10:16 +0000 (08:10 -0700)
commit58b99bd7f680c17dcea2cce2edcfd7fff0b99a01
tree9b45c0213b12cd779ab94d3e486283a401221644
parentd98273c5e7dbde273f90fb834aa3100d81bf8484
NVMe: Poll device while still active during remove

A device failure or link down wouldn't have been detected during namespace
removal. This patch keeps the device in the list for polling so that the
thread may see such failure and initiate a reset. The device is removed
from the list after disable, so we can safely flush the reset work as
it can't be requeued when disable completes.

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