]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commited3bf80193c9c7613cb3d312f985b235472a9adc
treebecc136f995d1527d7f21e590d9fe21c92a72e45
parent22e9adaf75e66f3a630b3bdbafce167685936c7c
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