RDMA/odp: use mmu_notifier_get/put for 'struct ib_ucontext_per_mm'
authorJason Gunthorpe <jgg@mellanox.com>
Tue, 6 Aug 2019 23:15:43 +0000 (20:15 -0300)
committerJason Gunthorpe <jgg@mellanox.com>
Wed, 21 Aug 2019 23:58:18 +0000 (20:58 -0300)
commitc571feca2dc972dc5afeba9036d08239f1c51af1
treef907d8667244966af9369b0cd36c897c692f3209
parentdaa138a58c802e7b4c2fb73f9b85bb082616ef43
RDMA/odp: use mmu_notifier_get/put for 'struct ib_ucontext_per_mm'

This is a significant simplification, no extra list is kept per FD, and
the interval tree is now shared between all the ucontexts, reducing
overhead if there are multiple ucontexts active.

Link: https://lore.kernel.org/r/20190806231548.25242-7-jgg@ziepe.ca
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/core/umem_odp.c
drivers/infiniband/core/uverbs_cmd.c
drivers/infiniband/core/uverbs_main.c
drivers/infiniband/hw/mlx5/main.c
include/rdma/ib_umem_odp.h
include/rdma/ib_verbs.h