OSDN Git Service

RDMA/mlx5: Do not store implicit children in the odp_mkeys xarray
authorJason Gunthorpe <jgg@mellanox.com>
Wed, 9 Oct 2019 16:09:33 +0000 (13:09 -0300)
committerJason Gunthorpe <jgg@mellanox.com>
Mon, 28 Oct 2019 19:41:14 +0000 (16:41 -0300)
commitd561987f34f263dd176ccd8fb782cb153d72f441
treea0917e236263a3d0431a32ad7fdabdcfe9759f4d
parent5256edcb98a14b11409a2d323f56a70a8b366363
RDMA/mlx5: Do not store implicit children in the odp_mkeys xarray

These mkeys are entirely internal and are never used by the HW for
page fault. They should also never be used by userspace for prefetch.
Simplify & optimize things by not including them in the xarray.

Since the prefetch path can now never see a child mkey there is no need
for the second synchronize_srcu() during imr destroy.

Link: https://lore.kernel.org/r/20191009160934.3143-14-jgg@ziepe.ca
Reviewed-by: Artemy Kovalyov <artemyko@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/mlx5/odp.c