]> 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)
commit0e8580b59db32571917e0f5518cca90236d8dc2e
treebecc136f995d1527d7f21e590d9fe21c92a72e45
parenta5a411ea773e43105558dd0b6464e9a53a35bf89
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