]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit6ba711c0ed4fdc1bcd4afeb6603b17c68357386d
tree0eb46c407ac53d9192c6a73a56a6c581e39845b8
parent5960d575ac79b7af4761534598ea54b4cbcff795
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