RDMA/cm: Use refcount_t type for refcount variable
authorDanit Goldberg <danitg@mellanox.com>
Sun, 17 Nov 2019 13:33:21 +0000 (15:33 +0200)
committerJason Gunthorpe <jgg@mellanox.com>
Tue, 19 Nov 2019 20:10:04 +0000 (16:10 -0400)
commit0acc637dacb6bf12a17c9ad0c41d9ff3696d8b05
treecb89c18ea6acd4a5b53343c8861305e271351551
parentc16339b69c0d58f456154b43fc396b1f1c3dc055
RDMA/cm: Use refcount_t type for refcount variable

This atomic in struct cm_id_private is being used as a refcount, change it
to refcount_t for better clarity and to get the refcount protections.

Link: https://lore.kernel.org/r/1573997601-4502-1-git-send-email-danitg@mellanox.com
Signed-off-by: Danit Goldberg <danitg@mellanox.com>
Reviewed-by: Leon Romanovsky <leonro@mellanox.com>
Reviewed-by: Jason Gunthorpe <jgg@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/core/cm.c