OSDN Git Service

RDMA/mlx5: Use rdma_umem_for_each_dma_block()
authorJason Gunthorpe <jgg@nvidia.com>
Mon, 13 Feb 2023 18:14:11 +0000 (14:14 -0400)
committerLeon Romanovsky <leon@kernel.org>
Wed, 15 Feb 2023 11:21:47 +0000 (13:21 +0200)
commit50a542a8accc12afd802488f95317155496692f1
tree170b172555770bcff68b7a4d364016317649f5c0
parent91d088a0304941b88c915cc800617ff4068cdd39
RDMA/mlx5: Use rdma_umem_for_each_dma_block()

Replace an open coding of rdma_umem_for_each_dma_block() with the proper
function.

Fixes: b3d47ebd4908 ("RDMA/mlx5: Use mlx5_umr_post_send_wait() to update MR pas")
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Link: https://lore.kernel.org/r/0-v1-c13a5b88359b+556d0-mlx5_umem_block_jgg@nvidia.com
Reviewed-by: Devesh Sharma <devesh.s.sharma@oracle.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
drivers/infiniband/hw/mlx5/umr.c