Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1645395 > unrolled thread

[PATCH 7/7] nvme: allocate queues for all possible CPUs

Started byChristoph Hellwig <hch@lst.de>
First post2017-05-19 11:00 +0200
Last post2017-05-19 11:00 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  [PATCH 7/7] nvme: allocate queues for all possible CPUs Christoph Hellwig <hch@lst.de> - 2017-05-19 11:00 +0200

#1645395 — [PATCH 7/7] nvme: allocate queues for all possible CPUs

FromChristoph Hellwig <hch@lst.de>
Date2017-05-19 11:00 +0200
Subject[PATCH 7/7] nvme: allocate queues for all possible CPUs
Message-ID<tILVn-84l-9@gated-at.bofh.it>
Unlike most drŅ–vers that simply pass the maximum possible vectors to
pci_alloc_irq_vectors NVMe needs to configure the device before allocting
the vectors, so it needs a manual update for the new scheme of using
all present CPUs.

Signed-off-by: Christoph Hellwig <hch@lst.de>
---
 drivers/nvme/host/pci.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/nvme/host/pci.c b/drivers/nvme/host/pci.c
index fed803232edc..6580a21d1425 100644
--- a/drivers/nvme/host/pci.c
+++ b/drivers/nvme/host/pci.c
@@ -1520,7 +1520,7 @@ static int nvme_setup_io_queues(struct nvme_dev *dev)
 	struct pci_dev *pdev = to_pci_dev(dev->dev);
 	int result, nr_io_queues, size;
 
-	nr_io_queues = num_online_cpus();
+	nr_io_queues = num_present_cpus();
 	result = nvme_set_queue_count(&dev->ctrl, &nr_io_queues);
 	if (result < 0)
 		return result;
-- 
2.11.0

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web