RDMA/ucma: Use refcount_t for the ctx->ref
authorJason Gunthorpe <jgg@mellanox.com>
Tue, 18 Feb 2020 19:17:00 +0000 (19:17 +0000)
committerJason Gunthorpe <jgg@mellanox.com>
Wed, 19 Feb 2020 20:41:00 +0000 (16:41 -0400)
commit167b95ec887029c5fe0fb0f601fb209323f498fb
tree058a64f2c4453e197d676bf3110f5f58c85c41d4
parentb72bfc965eb5d3475acabb038a1f9f6034c4658d
RDMA/ucma: Use refcount_t for the ctx->ref

Don't use an atomic as a refcount.

Link: https://lore.kernel.org/r/20200218191657.GA29724@ziepe.ca
Reviewed-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/core/ucma.c