RDMA/cma: Use refcount API to reflect refcount
authorParav Pandit <parav@mellanox.com>
Sun, 26 Jan 2020 14:26:50 +0000 (16:26 +0200)
committerJason Gunthorpe <jgg@mellanox.com>
Tue, 11 Feb 2020 18:00:39 +0000 (14:00 -0400)
commitbe439912e7c2e3e78ebd087932c165a83bdca6b5
tree1ddcbb6210d50cde47e048c53c64e3e6a890dec3
parent5ff8c8fa44c2cb74f3066ec4a531265db69b86c5
RDMA/cma: Use refcount API to reflect refcount

Use the refcount variant to capture the reference counting of the cma
device structure.

Link: https://lore.kernel.org/r/20200126142652.104803-6-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