Re: [PATCH rdma-next] RDMA/umem: Use correct value for SG entries in sg_copy_to_buffer()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Apr 04, 2019 at 10:22:47AM -0500, Shiraz Saleem wrote:
> From: "Shiraz Saleem" <shiraz.saleem@xxxxxxxxx>
> 
> With page combining, the assumption that number of SG entries
> in umem SGL equal to number of system pages in umem no longer
> holds.
> 
> umem->sg_nents tracks the SG entries in umem SGL. Use it
> in sg_pcopy_to_buffer() as opposed to ib_umem_num_pages(umem).
> 
> Fixes: a4ca56b2b416 ("RDMA/umem: Combine contiguous PAGE_SIZE regions in SGEs")
> Reported-by: Jason Gunthorpe <jgg@xxxxxxxxxxxx>
> Signed-off-by: Shiraz Saleem <shiraz.saleem@xxxxxxxxx>
> ---
>  drivers/infiniband/core/umem.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)

Applied to for-next

Thanks,
Jason



[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Photo]     [Yosemite News]     [Yosemite Photos]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux