Re: [PATCH] lib/scatterlist: Provide a DMA page iterator

From: Christoph Hellwig
Date: Mon Jan 14 2019 - 04:46:19 EST


On Sat, Jan 12, 2019 at 01:03:05PM -0600, Shiraz Saleem wrote:
> Well I was trying convert the RDMA drivers to use your new iterator variant
> and saw the need for it in locations where we need virtual address of the pages
> contained in the SGEs.

As far as i can tell that pg_arr[i] value is only ever used for
the case where we do an explicit dma coherent allocation, so you
should not have to fill it out at all.