[PATCH] nvme/pci: make PRP list DMA pools per-NUMA-node

Caleb Sander Mateos csander at purestorage.com
Mon Apr 21 07:50:19 PDT 2025


On Mon, Apr 21, 2025 at 12:09 AM Kanchan Joshi <joshi.k at samsung.com> wrote:
>
> On 4/20/2025 10:14 PM, Caleb Sander Mateos wrote:
> >   static int nvme_init_hctx(struct blk_mq_hw_ctx *hctx, void *data,
> >                         unsigned int hctx_idx)
>
> Missing this handling for admin queue.
>
> We may go to that case (i.e., admin command with data payload > 1
> segment) less often. But when we do, this code will give
> null-pointer-deference.

Good catch, will fix in v2. I'll also adopt your suggestion of
dynamically allocating the per-NUMA-node pool list.

Thanks,
Caleb



More information about the Linux-nvme mailing list