]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitb7c285eca986eeab4e7593a6233cd6f2133b2e88
treecb89c18ea6acd4a5b53343c8861305e271351551
parent71a292968b159daaa0b5c6ca8a79eee24592760b
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