Re: [PATCH v2 1/2] nvme-pci: Use size_t for length fields to handle larger sizes

Christoph Hellwig
2025-11-18T05:18:29Z

On Mon, Nov 17, 2025 at 12:35:40PM -0700, Keith Busch wrote:
> > + size_t total_len;
>
> Changing the generic phys_vec sounds fine, but the nvme driver has a 8MB
> limitation on how large an IO can be, so I don't think the driver's
> length needs to match the phys_vec type.

With the new dma mapping interface we could lift that limits for
SGL-based controllers as we basically only have a nr_segments limit now.
Not that I'm trying to argue for multi-GB I/O..