OSDN Git Service

RDMA/restrack: Simplify restrack tracking in kernel flows
authorLeon Romanovsky <leonro@mellanox.com>
Tue, 22 Sep 2020 09:11:05 +0000 (12:11 +0300)
committerJason Gunthorpe <jgg@nvidia.com>
Tue, 22 Sep 2020 22:47:35 +0000 (19:47 -0300)
commitc34a23c28c6b0045b1f21649de30f68da72547af
treeb4b0772aaa3fa5f49f68933978076b81102f8b38
parent13ef5539def732dc7b9c58c320d97a0a95b52634
RDMA/restrack: Simplify restrack tracking in kernel flows

Have a single rdma_restrack_add() that adds an entry, there is no reason
to split the user/kernel here, the rdma_restrack_set_task() is responsible
for this difference.

This patch prepares the code to the future requirement of making restrack
is mandatory for managing ib objects.

Link: https://lore.kernel.org/r/20200922091106.2152715-5-leon@kernel.org
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/core/cma.c
drivers/infiniband/core/core_priv.h
drivers/infiniband/core/counters.c
drivers/infiniband/core/cq.c
drivers/infiniband/core/restrack.c
drivers/infiniband/core/restrack.h
drivers/infiniband/core/verbs.c
include/rdma/restrack.h