]> git.baikalelectronics.ru Git - kernel.git/commit
nvme-pci: set nvmeq->cq_vector after alloc cq/sq
authorJianchao Wang <jianchao.w.wang@oracle.com>
Thu, 24 May 2018 09:51:33 +0000 (17:51 +0800)
committerChristoph Hellwig <hch@lst.de>
Fri, 25 May 2018 14:50:12 +0000 (16:50 +0200)
commitad14054890c93b72fe6bd90499081691fe53f5a2
tree2d7ae163c52f416a35cbfd7d15347a81418eb148
parentbe856e4239cfa34e3a8cf0c7cd4561c433cf813e
nvme-pci: set nvmeq->cq_vector after alloc cq/sq

Set cq_vector after alloc cq/sq, otherwise nvme_suspend_queue will invoke
free_irq for it and cause a 'Trying to free already-free IRQ  xxx'
warning if the create CQ/SQ command times out.

Signed-off-by: Jianchao Wang <jianchao.w.wang@oracle.com>
Reviewed-by: Keith Busch <keith.busch@intel.com>
[hch: fixed to pass a s16 and clean up the comment]
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/nvme/host/pci.c