RDMA/odp: remove ib_ucontext from ib_umem
authorJason Gunthorpe <jgg@mellanox.com>
Tue, 6 Aug 2019 23:15:44 +0000 (20:15 -0300)
committerJason Gunthorpe <jgg@mellanox.com>
Wed, 21 Aug 2019 23:58:19 +0000 (20:58 -0300)
commit47f725ee7b5f5cae1f83512961bcf8b41a7a5794
tree5060299eb0914f1c4894b2ddf4d8f785a39d69e8
parentc571feca2dc972dc5afeba9036d08239f1c51af1
RDMA/odp: remove ib_ucontext from ib_umem

At this point the ucontext is only being stored to access the ib_device,
so just store the ib_device directly instead. This is more natural and
logical as the umem has nothing to do with the ucontext.

Link: https://lore.kernel.org/r/20190806231548.25242-8-jgg@ziepe.ca
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/core/umem.c
drivers/infiniband/core/umem_odp.c
include/rdma/ib_umem.h