]> www.infradead.org Git - users/jedix/linux-maple.git/commit
nvme-pci: Fix nvme queue cleanup if IRQ setup fails
authorJianchao Wang <jianchao.w.wang@oracle.com>
Thu, 15 Feb 2018 11:13:41 +0000 (19:13 +0800)
committerBrian Maly <brian.maly@oracle.com>
Mon, 23 Apr 2018 20:17:46 +0000 (16:17 -0400)
commit2cf9d2a17cf940e35b7f1a30b419ba3b0d40bd11
tree97f88606114ec3d78e3fc7e52f5628d3a1d7b249
parent841d7b0fe574be6d58feab05ec3b234d4bf138f6
nvme-pci: Fix nvme queue cleanup if IRQ setup fails

This patch fixes nvme queue cleanup if requesting an IRQ handler for
the queue's vector fails. It does this by resetting the cq_vector to
the uninitialized value of -1 so it is ignored for a controller reset.

Signed-off-by: Jianchao Wang <jianchao.w.wang@oracle.com>
[changelog updates, removed misc whitespace changes]
Signed-off-by: Keith Busch <keith.busch@intel.com>
(cherry picked from  f25a2dfc20e3a3ed8fe6618c331799dd7bd01190)
Orabug: 27892359

Reviewed-by: Thomas Tai <thomas.tai@oracle.com>
Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Jianchao Wang <jianchao.w.wang@oracle.com>
Signed-off-by: Brian Maly <brian.maly@oracle.com>
drivers/nvme/host/pci.c