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

From: Christoph Hellwig

Date: Tue Nov 18 2025 - 00:27:08 EST


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..