nvme/pci: move cqe check after device shutdown
Many users have reported nvme triggered irq_startup() warnings during
shutdown. The driver uses the nvme queue's irq to synchronize scanning
for completions, and enabling an interrupt affined to only offline CPUs
triggers the alarming warning.
Move the final CQE check to after disabling the device and all
registered interrupts have been torn down so that we do not have any
IRQ to synchronize.
Reviewed-by: Sagi Grimberg <email@example.com>
Reviewed-by: Christoph Hellwig <firstname.lastname@example.org>
Signed-off-by: Keith Busch <email@example.com>
Signed-off-by: Jens Axboe <firstname.lastname@example.org>
1 file changed