OSDN Git Service

RDMA/odp: Provide ib_umem_odp_release() to undo the allocs
authorJason Gunthorpe <jgg@mellanox.com>
Mon, 19 Aug 2019 11:17:05 +0000 (14:17 +0300)
committerJason Gunthorpe <jgg@mellanox.com>
Wed, 21 Aug 2019 17:08:42 +0000 (14:08 -0300)
commit0446cad9ca385c3b8d6e5a1184e59650fa7a7a6d
tree24c7fd844838087c179c73c4bb6114f524f7d7f8
parent261dc53f8ee037bf2fbf68f90c319b04062a126c
RDMA/odp: Provide ib_umem_odp_release() to undo the allocs

Now that there are allocator APIs that return the ib_umem_odp directly
it should be freed through a umem_odp free'er as well.

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