]> 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)
commitc6a8a765e305df579b04cd0bcff22a8023bc6e5e
treee579d6001699450d2cc39f01638429cf51929571
parentdbf8067c2f6afdc2a4d668043a5dcb4518578d4e
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