diff options
| author | Leon Romanovsky <[email protected]> | 2020-09-22 09:11:05 +0000 |
|---|---|---|
| committer | Jason Gunthorpe <[email protected]> | 2020-09-22 22:47:35 +0000 |
| commit | c34a23c28c6b0045b1f21649de30f68da72547af (patch) | |
| tree | b4b0772aaa3fa5f49f68933978076b81102f8b38 /drivers/infiniband/core/counters.c | |
| parent | RDMA/restrack: Count references to the verbs objects (diff) | |
| download | kernel-c34a23c28c6b0045b1f21649de30f68da72547af.tar.gz kernel-c34a23c28c6b0045b1f21649de30f68da72547af.zip | |
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/[email protected]
Signed-off-by: Leon Romanovsky <[email protected]>
Signed-off-by: Jason Gunthorpe <[email protected]>
Diffstat (limited to 'drivers/infiniband/core/counters.c')
| -rw-r--r-- | drivers/infiniband/core/counters.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/infiniband/core/counters.c b/drivers/infiniband/core/counters.c index c059de99d19c..e13c500a9ec0 100644 --- a/drivers/infiniband/core/counters.c +++ b/drivers/infiniband/core/counters.c @@ -252,7 +252,7 @@ static void rdma_counter_res_add(struct rdma_counter *counter, { if (rdma_is_kernel_res(&qp->res)) { rdma_restrack_set_task(&counter->res, qp->res.kern_name); - rdma_restrack_kadd(&counter->res); + rdma_restrack_add(&counter->res); } else { rdma_restrack_attach_task(&counter->res, qp->res.task); rdma_restrack_uadd(&counter->res); |
