Skip to contentSkip to conversation

NVMe: Use pci_dev->msix_enabled instead of pci_dev->irq

PATCH New Yijing Wang 1 participant 1 message Feb 7, 2015

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 NVMe: Use pci_dev->msix_enabled instead of pci_dev->irq

We should use msi_enabled flag to check whether MSI-X was enabled, it's better than rough use pci_dev->irq.

Signed-off-by Yijing Wang <wangyijing at huawei.com>
---
 drivers/block/nvme-core.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/block/nvme-core.c +1 -1
index b3cb67d..646da30 100644
@@ -2099,7 +2099,7 @@ static int nvme_setup_io_queues(struct nvme_dev *dev)
 	 * If we enable msix early due to not intx, disable it again before
 	 * setting up the full range we need.
 	 */
-	if (!pdev->irq)
+	if (pdev->msix_enabled)
 		pci_disable_msix(pdev);
 
 	for (i = 0; i < nr_io_queues; i++)
Signature · 1 line
1.7.1