[PATCH V2] nvme-pci: set cq_vector to -1 if io queue setup fails

Keith Busch keith.busch at intel.com
Mon Feb 26 07:58:30 PST 2018


On Thu, Feb 15, 2018 at 07:13:41PM +0800, Jianchao Wang wrote:
> nvme cq irq is freed based on queue_count. When the sq/cq creation
> fails, irq will not be setup. free_irq will warn 'Try to free
> already-free irq'.
> 
> To fix it, set the nvmeq->cq_vector to -1, then nvme_suspend_queue
> will ignore it.

Applied with updates to change log and removing the miscellaneous white
space changes.



More information about the Linux-nvme mailing list