Re: [PATCH v3 11/14] PCI/P2PDMA: Store mapping method in an xarray

From: Christoph Hellwig
Date: Fri Aug 16 2019 - 04:14:59 EST


On Mon, Aug 12, 2019 at 11:30:45AM -0600, Logan Gunthorpe wrote:
> When upstream_bridge_distance() is called, store the method required to map
> the DMA transfers in an xarray so it can be looked up efficiently on the
> hot path in pci_p2pdma_map_sg().
>
> Link: https://lore.kernel.org/r/20190730163545.4915-12-logang@xxxxxxxxxxxx
> Signed-off-by: Logan Gunthorpe <logang@xxxxxxxxxxxx>
> Signed-off-by: Bjorn Helgaas <bhelgaas@xxxxxxxxxx>

Looks good,

Reviewed-by: Christoph Hellwig <hch@xxxxxx>