RDMA/odp: Make it clearer when a umem is an implicit ODP umem
authorJason Gunthorpe <jgg@mellanox.com>
Mon, 19 Aug 2019 11:17:01 +0000 (14:17 +0300)
committerJason Gunthorpe <jgg@mellanox.com>
Wed, 21 Aug 2019 17:08:42 +0000 (14:08 -0300)
commitfd7dbf035edcfb035977423e2a5102832c1427f4
tree6b3db77ec053e94fed95479569088d38e2e64bc8
parentf993de88a55f2dd56f17248d06c0dfda9a9799db
RDMA/odp: Make it clearer when a umem is an implicit ODP umem

Implicit ODP umems are special, they don't have any page lists, they don't
exist in the interval tree and they are never DMA mapped.

Instead of trying to guess this based on a zero length use an explicit
flag.

Further, do not allow non-implicit umems to be 0 size.

Link: https://lore.kernel.org/r/20190819111710.18440-4-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/mr.c
drivers/infiniband/hw/mlx5/odp.c
include/rdma/ib_umem_odp.h