RDMA/umem: Avoid synchronize_srcu in the ODP MR destruction path
authorJason Gunthorpe <jgg@mellanox.com>
Sun, 16 Sep 2018 17:48:11 +0000 (20:48 +0300)
committerDoug Ledford <dledford@redhat.com>
Fri, 21 Sep 2018 15:58:36 +0000 (11:58 -0400)
commit56ac9dd9177ce451ac8176311915b29e8b5f0ac2
tree0eb46c407ac53d9192c6a73a56a6c581e39845b8
parentbe7a57b41ad824dbc59d1ffa91160ee73f2999ee
RDMA/umem: Avoid synchronize_srcu in the ODP MR destruction path

synchronize_rcu is slow enough that it should be avoided on the syscall
path when user space is destroying MRs. After all the rework we can now
trivially do this by having call_srcu kfree the per_mm.

Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/core/umem_odp.c
include/rdma/ib_umem_odp.h