[PATCH 3/5] nvme-pci: iod npages fits in s8

Chaitanya Kulkarni chaitanyak at nvidia.com
Thu Jul 28 16:14:44 PDT 2022


On 7/28/22 15:11, Keith Busch wrote:
> From: Keith Busch <kbusch at kernel.org>
> 
> The largest allowed transfer is 4MB, which can use at most 1025 PRPs.
> Each PRP is 8 bytes, so the maximum number of 4k nvme pages needed for
> the iod_list is 3, which fits in an 's8'.
> 
> Signed-off-by: Keith Busch <kbusch at kernel.org>
> ---


Looks good.

Reviewed-by: Chaitanya Kulkarni <kch at nvidia.com>

-ck




More information about the Linux-nvme mailing list