diff options
author | Bob Pearson <rpearsonhpe@gmail.com> | 2022-03-04 03:08:05 +0300 |
---|---|---|
committer | Jason Gunthorpe <jgg@nvidia.com> | 2022-03-16 16:34:42 +0300 |
commit | 3197706abd053275d2a561cfb7dc8f6cfaf7d02c (patch) | |
tree | e3f988ed5bf1530e780a1f2c3cebc047e20c215e /drivers/infiniband/sw/rxe/rxe_mcast.c | |
parent | 3225717f6dfa29a6f03629b7a7f8492e1521d06d (diff) | |
download | linux-3197706abd053275d2a561cfb7dc8f6cfaf7d02c.tar.xz |
RDMA/rxe: Use standard names for ref counting
Rename rxe_add_ref() to rxe_get() and rxe_drop_ref() to rxe_put().
Significantly improves readability for new readers.
Link: https://lore.kernel.org/r/20220304000808.225811-10-rpearsonhpe@gmail.com
Signed-off-by: Bob Pearson <rpearsonhpe@gmail.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Diffstat (limited to 'drivers/infiniband/sw/rxe/rxe_mcast.c')
-rw-r--r-- | drivers/infiniband/sw/rxe/rxe_mcast.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/infiniband/sw/rxe/rxe_mcast.c b/drivers/infiniband/sw/rxe/rxe_mcast.c index c399a29b648b..ae8f11cb704a 100644 --- a/drivers/infiniband/sw/rxe/rxe_mcast.c +++ b/drivers/infiniband/sw/rxe/rxe_mcast.c @@ -319,7 +319,7 @@ static int __rxe_init_mca(struct rxe_qp *qp, struct rxe_mcg *mcg, atomic_inc(&qp->mcg_num); - rxe_add_ref(qp); + rxe_get(qp); mca->qp = qp; list_add_tail(&mca->qp_list, &mcg->qp_list); @@ -389,7 +389,7 @@ static void __rxe_cleanup_mca(struct rxe_mca *mca, struct rxe_mcg *mcg) atomic_dec(&mcg->qp_num); atomic_dec(&mcg->rxe->mcg_attach); atomic_dec(&mca->qp->mcg_num); - rxe_drop_ref(mca->qp); + rxe_put(mca->qp); kfree(mca); } |