summaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/sw/rxe/rxe_av.c
diff options
context:
space:
mode:
authorBob Pearson <rpearsonhpe@gmail.com>2022-03-03 18:08:05 -0600
committerJason Gunthorpe <jgg@nvidia.com>2022-03-16 10:34:42 -0300
commit3197706abd053275d2a561cfb7dc8f6cfaf7d02c (patch)
treee3f988ed5bf1530e780a1f2c3cebc047e20c215e /drivers/infiniband/sw/rxe/rxe_av.c
parent3225717f6dfa29a6f03629b7a7f8492e1521d06d (diff)
downloadlinux-3197706abd053275d2a561cfb7dc8f6cfaf7d02c.tar.gz
linux-3197706abd053275d2a561cfb7dc8f6cfaf7d02c.tar.bz2
linux-3197706abd053275d2a561cfb7dc8f6cfaf7d02c.zip
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_av.c')
-rw-r--r--drivers/infiniband/sw/rxe/rxe_av.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/infiniband/sw/rxe/rxe_av.c b/drivers/infiniband/sw/rxe/rxe_av.c
index 360a567159fe..3b05314ca739 100644
--- a/drivers/infiniband/sw/rxe/rxe_av.c
+++ b/drivers/infiniband/sw/rxe/rxe_av.c
@@ -127,14 +127,14 @@ struct rxe_av *rxe_get_av(struct rxe_pkt_info *pkt, struct rxe_ah **ahp)
if (rxe_ah_pd(ah) != pkt->qp->pd) {
pr_warn("PDs don't match for AH and QP\n");
- rxe_drop_ref(ah);
+ rxe_put(ah);
return NULL;
}
if (ahp)
*ahp = ah;
else
- rxe_drop_ref(ah);
+ rxe_put(ah);
return &ah->av;
}