]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit3e93987c8803729a37644af7763bcc0c6c4ec1dc
treebe9de57311a2682650025b3a561ec978c201cd26
parentf3dca24cf87563e7d4786a09a7cfa9fa5b414ee9
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