* [PATCH v2] nvme-pci: do not set the NUMA node of device if it has none
@ 2023-09-12 15:52 Pratyush Yadav
2023-09-12 16:11 ` Keith Busch
0 siblings, 1 reply; 2+ messages in thread
From: Pratyush Yadav @ 2023-09-12 15:52 UTC (permalink / raw)
To: Keith Busch, Jens Axboe, Christoph Hellwig, Sagi Grimberg
Cc: Pratyush Yadav, linux-nvme, linux-kernel
If a device has no NUMA node information associated with it, the driver
puts the device in node first_memory_node (say node 0). Not having a
NUMA node and being associated with node 0 are completely different
things and it makes little sense to mix the two.
Signed-off-by: Pratyush Yadav <ptyadav@amazon.de>
---
Changes in v2:
- Re-worded the commit message.
drivers/nvme/host/pci.c | 3 ---
1 file changed, 3 deletions(-)
diff --git a/drivers/nvme/host/pci.c b/drivers/nvme/host/pci.c
index 2f57da12d983..347cb5daebc3 100644
--- a/drivers/nvme/host/pci.c
+++ b/drivers/nvme/host/pci.c
@@ -2916,9 +2916,6 @@ static struct nvme_dev *nvme_pci_alloc_dev(struct pci_dev *pdev,
struct nvme_dev *dev;
int ret = -ENOMEM;
- if (node == NUMA_NO_NODE)
- set_dev_node(&pdev->dev, first_memory_node);
-
dev = kzalloc_node(sizeof(*dev), GFP_KERNEL, node);
if (!dev)
return ERR_PTR(-ENOMEM);
--
2.40.1
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH v2] nvme-pci: do not set the NUMA node of device if it has none
2023-09-12 15:52 [PATCH v2] nvme-pci: do not set the NUMA node of device if it has none Pratyush Yadav
@ 2023-09-12 16:11 ` Keith Busch
0 siblings, 0 replies; 2+ messages in thread
From: Keith Busch @ 2023-09-12 16:11 UTC (permalink / raw)
To: Pratyush Yadav
Cc: Jens Axboe, Christoph Hellwig, Sagi Grimberg, linux-nvme, linux-kernel
On Tue, Sep 12, 2023 at 05:52:49PM +0200, Pratyush Yadav wrote:
> If a device has no NUMA node information associated with it, the driver
> puts the device in node first_memory_node (say node 0). Not having a
> NUMA node and being associated with node 0 are completely different
> things and it makes little sense to mix the two.
Applied for nvme-6.6. This overall makes sense, though I hope the patch
isn't just to work around xen's incompatibility with managed irqs :)
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-09-12 16:12 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-09-12 15:52 [PATCH v2] nvme-pci: do not set the NUMA node of device if it has none Pratyush Yadav
2023-09-12 16:11 ` Keith Busch
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®