[PATCH] nvme/pci: make PRP list DMA pools per-NUMA-node
Keith Busch
kbusch at kernel.org
Mon Apr 21 07:27:31 PDT 2025
On Mon, Apr 21, 2025 at 12:43:24PM +0530, Kanchan Joshi wrote:
> On 4/20/2025 10:14 PM, Caleb Sander Mateos wrote:
> > struct nvme_dev {
> > struct nvme_queue *queues;
> > struct blk_mq_tag_set tagset;
> > struct blk_mq_tag_set admin_tagset;
> > u32 __iomem *dbs;
> > struct device *dev;
> > - struct dma_pool *prp_page_pool;
> > - struct dma_pool *prp_small_pool;
> > + struct nvme_prp_dma_pools prp_pools[MAX_NUMNODES];
>
> I wonder if it is worth to make this dynamic using nr_node_ids?
Yeah, I think so. MAX_NUMNODES is derived from a config value that may
be much larger than what the platform actually has.
More information about the Linux-nvme
mailing list