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

Christoph Hellwig
2019-01-14T09:46:14Z

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.