NVMe: Fix check_flush_dependency warning
authorKeith Busch <keith.busch@intel.com>
Wed, 27 Apr 2016 21:51:18 +0000 (15:51 -0600)
committerJens Axboe <axboe@fb.com>
Mon, 2 May 2016 15:03:06 +0000 (09:03 -0600)
commit3b24774e1fb90a40836e96e39a851a774679efff
treeed8ababaafe3035d4fd9fba73db45cd6bdf98a1e
parentb31356dfde571d925768783f1bb63ca8e156d0b3
NVMe: Fix check_flush_dependency warning

If the controller fails and is degraded after a reset, we need to kill
off all requests queues before removing the inaccessble namespaces. This
will prevent del_gendisk from syncing dirty data, which we can't due
from a WQ_MEM_RECLAIM work queue.

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