summaryrefslogtreecommitdiff
path: root/drivers/infiniband/core/cma_priv.h
diff options
context:
space:
mode:
authorParav Pandit <parav@mellanox.com>2020-01-26 16:26:52 +0200
committerJason Gunthorpe <jgg@mellanox.com>2020-02-11 14:00:40 -0400
commit43fb5892cdfaa3bbe170aade07d4a38086636cca (patch)
tree12519dc56759413a1c3e0f1c75cc28178c2bc758 /drivers/infiniband/core/cma_priv.h
parente368d23f57f6a08341d35c44255f2d8e7695152b (diff)
RDMA/cma: Use refcount API to reflect refcount
Use a refcount_t for atomics being used as a refcount. Link: https://lore.kernel.org/r/20200126142652.104803-8-leon@kernel.org Signed-off-by: Parav Pandit <parav@mellanox.com> Signed-off-by: Leon Romanovsky <leonro@mellanox.com> Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Diffstat (limited to 'drivers/infiniband/core/cma_priv.h')
-rw-r--r--drivers/infiniband/core/cma_priv.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/infiniband/core/cma_priv.h b/drivers/infiniband/core/cma_priv.h
index 4e04c442ff86..5edcf44a9307 100644
--- a/drivers/infiniband/core/cma_priv.h
+++ b/drivers/infiniband/core/cma_priv.h
@@ -66,7 +66,7 @@ struct rdma_id_private {
struct mutex qp_mutex;
struct completion comp;
- atomic_t refcount;
+ refcount_t refcount;
struct mutex handler_mutex;
int backlog;