OSDN Git Service

RDMA/vmw_pvrdma: Use refcount_t instead of atomic_t
authorBryan Tan <bryantan@vmware.com>
Wed, 20 Dec 2017 19:27:00 +0000 (11:27 -0800)
committerJason Gunthorpe <jgg@mellanox.com>
Thu, 28 Dec 2017 04:37:26 +0000 (21:37 -0700)
commita61eb6136829173d51dd0c7f7248733025708eeb
treeed34c4ae294ab88718d81f973f1b5b66712ec59a
parent1a9ecf8d1a292f0f908e5605b58738a273d2a937
RDMA/vmw_pvrdma: Use refcount_t instead of atomic_t

refcount_t is the preferred type for refcounts. Change the
QP and CQ refcnt fields to use refcount_t.

Reviewed-by: Adit Ranadive <aditr@vmware.com>
Reviewed-by: Aditya Sarwade <asarwade@vmware.com>
Reviewed-by: Jorgen Hansen <jhansen@vmware.com>
Signed-off-by: Bryan Tan <bryantan@vmware.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/vmw_pvrdma/pvrdma.h
drivers/infiniband/hw/vmw_pvrdma/pvrdma_cq.c
drivers/infiniband/hw/vmw_pvrdma/pvrdma_main.c
drivers/infiniband/hw/vmw_pvrdma/pvrdma_qp.c