]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit27ff131c339425e64f238378faa0707f541e5735
treee579d6001699450d2cc39f01638429cf51929571
parentb42817f3ab599221bc0ca792b2c78fe8754344aa
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