RDMA/odp: Iterate over the whole rbtree directly
authorJason Gunthorpe <jgg@mellanox.com>
Mon, 19 Aug 2019 11:17:00 +0000 (14:17 +0300)
committerJason Gunthorpe <jgg@mellanox.com>
Wed, 21 Aug 2019 17:08:24 +0000 (14:08 -0300)
commitf993de88a55f2dd56f17248d06c0dfda9a9799db
treebe9de57311a2682650025b3a561ec978c201cd26
parent7cc2e18f21008f4093b49099264ca4d65b9aa223
RDMA/odp: Iterate over the whole rbtree directly

Instead of intersecting a full interval, just iterate over every element
directly. This is faster and clearer.

Link: https://lore.kernel.org/r/20190819111710.18440-3-leon@kernel.org
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/core/umem_odp.c
drivers/infiniband/hw/mlx5/odp.c