diff options
author | Leon Romanovsky <leonro@mellanox.com> | 2018-01-28 11:17:22 +0200 |
---|---|---|
committer | Jason Gunthorpe <jgg@mellanox.com> | 2018-01-29 20:21:40 -0700 |
commit | 08f294a1524bc3211a28091daa6c7513828c7d33 (patch) | |
tree | 0c8e359ef99f869ac67427de46dc3c5468f39040 /drivers/infiniband/core/uverbs_cmd.c | |
parent | 78a0cd648a802450602c95e164a820fe1a165247 (diff) | |
download | linux-0-day-08f294a1524bc3211a28091daa6c7513828c7d33.tar.gz linux-0-day-08f294a1524bc3211a28091daa6c7513828c7d33.tar.xz |
RDMA/core: Add resource tracking for create and destroy CQs
Track create and destroy operations of CQ objects.
Reviewed-by: Mark Bloch <markb@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Reviewed-by: Steve Wise <swise@opengridcomputing.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Diffstat (limited to 'drivers/infiniband/core/uverbs_cmd.c')
-rw-r--r-- | drivers/infiniband/core/uverbs_cmd.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/infiniband/core/uverbs_cmd.c b/drivers/infiniband/core/uverbs_cmd.c index 825325c764a17..3e95acd29de79 100644 --- a/drivers/infiniband/core/uverbs_cmd.c +++ b/drivers/infiniband/core/uverbs_cmd.c @@ -1033,6 +1033,8 @@ static struct ib_ucq_object *create_cq(struct ib_uverbs_file *file, goto err_cb; uobj_alloc_commit(&obj->uobject); + cq->res.type = RDMA_RESTRACK_CQ; + rdma_restrack_add(&cq->res); return obj; |