]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitfaf69d2b90234373b99f25eacc817f6a7d9615f9
tree6b3db77ec053e94fed95479569088d38e2e64bc8
parent3e93987c8803729a37644af7763bcc0c6c4ec1dc
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