Re: [PATCH] IB/iser: Pass the correct number of entries for dma mapped SGL

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

 



On Thu, Jan 17, 2019 at 03:45:45PM +0000, Israel Rukshin wrote:
> ib_dma_map_sg() augments the SGL into a 'dma mapped SGL'. This process
> may change the number of entries and the lengths of each entry.
> 
> Code that touches dma_address is iterating over the 'dma mapped SGL'
> and must use dma_nents which returned from ib_dma_map_sg().
> 
> ib_sg_to_pages() and ib_map_mr_sg() are using dma_address so
> they must use dma_nents.
> 
> Fixes: 39405885005a ("IB/iser: Port to new fast registration API")
> Fixes: bfe066e256d5 ("IB/iser: Reuse ib_sg_to_pages")
> Signed-off-by: Israel Rukshin <israelr@xxxxxxxxxxxx>
> Reviewed-by: Max Gurtovoy <maxg@xxxxxxxxxxxx>
> ---
>  drivers/infiniband/ulp/iser/iser_memory.c | 10 +++++-----
>  1 file changed, 5 insertions(+), 5 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