[PATCH 2/4] nvme-pci: use mapped entries for sgl decision
Chaitanya Kulkarni
chaitanyak at nvidia.com
Sun Jan 8 23:09:09 PST 2023
On 1/5/23 12:28, Keith Busch wrote:
> From: Keith Busch <kbusch at kernel.org>
>
> The driver uses the dma entries for setting up its command's SGL/PRP
> lists. The dma mapping might have fewer entries than the physical
> segments, so check the dma mapped count to determine which nvme data
> layout method is more optimal.
>
> Signed-off-by: Keith Busch <kbusch at kernel.org>
> Reviewed-by: Sagi Grimberg <sagi at grimberg.me>
> ---
I vaguely remember a similar bug in this area where this actually happened
Reviewed-by: Chaitanya Kulkarni <kch at nvidia.com>
-ck
More information about the Linux-nvme
mailing list