]> git.baikalelectronics.ru Git - kernel.git/commit
RDMA/odp: Make the three ways to create a umem_odp clear
authorJason Gunthorpe <jgg@mellanox.com>
Mon, 19 Aug 2019 11:17:03 +0000 (14:17 +0300)
committerJason Gunthorpe <jgg@mellanox.com>
Wed, 21 Aug 2019 17:08:42 +0000 (14:08 -0300)
commita62e833db6c48164a1fa64d7597ff2e0afd10724
tree5a00fa66ad14cb5d3527f20ce91f7e87963ea2f8
parent2489a4f1fdc78e730aa030123e6de56102dc4504
RDMA/odp: Make the three ways to create a umem_odp clear

The three paths to build the umem_odps are kind of muddled, they are:
- As a normal ib_mr umem
- As a child in an implicit ODP umem tree
- As the root of an implicit ODP umem tree

Only the first two are actually umem's, the last is an abuse.

The implicit case can only be triggered by explicit driver request, it
should never be co-mingled with the normal case. While we are here, make
sensible function names and add some comments to make this clearer.

Link: https://lore.kernel.org/r/20190819111710.18440-6-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
include/rdma/ib_umem_odp.h