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

2019-08-06 Thread Christoph Hellwig
On Tue, Jul 30, 2019 at 10:35:42AM -0600, Logan Gunthorpe wrote: > When upstream_bridge_distance() is called store the method required > to map the DMA transfers in an xarray so that it can be looked up > efficiently on the hot path in pci_p2pdma_map_sg(). > > Signed-off-by: Logan Gunthorpe > ---

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

2019-07-30 Thread Logan Gunthorpe
When upstream_bridge_distance() is called store the method required to map the DMA transfers in an xarray so that it can be looked up efficiently on the hot path in pci_p2pdma_map_sg(). Signed-off-by: Logan Gunthorpe --- drivers/pci/p2pdma.c | 40 +++- 1 file