NVMe: Skip async events for degraded controllers
authorKeith Busch <keith.busch@intel.com>
Tue, 12 Apr 2016 17:13:11 +0000 (11:13 -0600)
committerJens Axboe <axboe@fb.com>
Tue, 12 Apr 2016 19:44:00 +0000 (13:44 -0600)
commit21f033f7c72e9505c46c6555b019b907dc39dfcd
treee579d6001699450d2cc39f01638429cf51929571
parent8093f7ca73c1633e458c16a74b51bcc3c94564c4
NVMe: Skip async events for degraded controllers

If the controller is degraded, the driver should stay out of the way so
the user can recover the drive. This patch skips driver initiated async
event requests when the drive is in this state.

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