diff options
author | Leon Romanovsky <leonro@mellanox.com> | 2018-11-28 14:16:44 +0300 |
---|---|---|
committer | Doug Ledford <dledford@redhat.com> | 2018-12-03 22:58:25 +0300 |
commit | 12d23a91983348bafcf646d5520de320a6a6f8e3 (patch) | |
tree | b579a0d272bc40d58a6f8a3047c3051cd876b290 /drivers/infiniband/core/rdma_core.c | |
parent | 606152107bbdbc0e21f25e0d15ef2787a4ab90fd (diff) | |
download | linux-12d23a91983348bafcf646d5520de320a6a6f8e3.tar.xz |
RDMA/uverbs: Annotate alloc/deallloc paths with context tracking
Add restrack annotations to track allocations of ucontexts.
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'drivers/infiniband/core/rdma_core.c')
-rw-r--r-- | drivers/infiniband/core/rdma_core.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/infiniband/core/rdma_core.c b/drivers/infiniband/core/rdma_core.c index efa292489271..54d4e1521770 100644 --- a/drivers/infiniband/core/rdma_core.c +++ b/drivers/infiniband/core/rdma_core.c @@ -820,6 +820,8 @@ static void ufile_destroy_ucontext(struct ib_uverbs_file *ufile, ib_rdmacg_uncharge(&ucontext->cg_obj, ib_dev, RDMACG_RESOURCE_HCA_HANDLE); + rdma_restrack_del(&ucontext->res); + /* * FIXME: Drivers are not permitted to fail dealloc_ucontext, remove * the error return. |