Re: [PATCH net-next 2/3] mm: vmalloc: export find_vm_area()
From: Jason Gunthorpe
Date: Thu Jan 29 2026 - 08:22:03 EST
On Thu, Jan 29, 2026 at 07:36:09PM +0800, D. Wythe wrote:
> > From there you can check the resulting scatterlist and compute the
> > page_size to pass to ib_map_mr_sg().
I should clarify this is done after DMA mapping the scatterlist. dma
mapping can improve the page size.
And maybe the core code should be helping compute the MR's target page
size for a scatterlist.. We already have code to do this in umem, and
it is a pretty bit tricky considering the IOVA related rules.
Jason