nvme-pci: Suspend queues after deleting them
authorKeith Busch <keith.busch@intel.com>
Wed, 24 Jan 2018 21:55:12 +0000 (14:55 -0700)
committerChristoph Hellwig <hch@lst.de>
Thu, 25 Jan 2018 15:20:37 +0000 (16:20 +0100)
commitee9aebb27cbdac677525e0e56e8844cf4bf46461
treebecc136f995d1527d7f21e590d9fe21c92a72e45
parent62314e405fa101dbb82563394f9dfc225e3f1167
nvme-pci: Suspend queues after deleting them

The driver had been abusing the cq_vector state to know if new submissions
were safe, but that was before we could quiesce blk-mq. If the controller
happens to get an interrupt through while we're suspending those queues,
'no irq handler' warnings may occur.

This patch will disable the interrupts only after the queues are deleted.

Reported-by: Jianchao Wang <jianchao.w.wang@oracle.com>
Tested-by: Jianchao Wang <jianchao.w.wang@oracle.com>
Signed-off-by: Keith Busch <keith.busch@intel.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/nvme/host/pci.c