RDMA/cma: Use refcount API to reflect refcount
authorParav Pandit <parav@mellanox.com>
Sun, 26 Jan 2020 14:26:52 +0000 (16:26 +0200)
committerJason Gunthorpe <jgg@mellanox.com>
Tue, 11 Feb 2020 18:00:40 +0000 (14:00 -0400)
commit43fb5892cdfaa3bbe170aade07d4a38086636cca
tree12519dc56759413a1c3e0f1c75cc28178c2bc758
parente368d23f57f6a08341d35c44255f2d8e7695152b
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>
drivers/infiniband/core/cma.c
drivers/infiniband/core/cma_priv.h