aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/core/restrack.h
diff options
context:
space:
mode:
authorMark Zhang <markz@mellanox.com>2019-07-02 13:02:32 +0300
committerJason Gunthorpe <jgg@mellanox.com>2019-07-05 10:22:54 -0300
commit699a9c540a04d05aa342cd84606bc8b1e8c05b7b (patch)
treef1e00adeb4379f2adff3b33f5f82bbb5bbd2f560 /drivers/infiniband/core/restrack.h
parentRDMA/restrack: Introduce statistic counter (diff)
downloadlinux-dev-699a9c540a04d05aa342cd84606bc8b1e8c05b7b.tar.xz
linux-dev-699a9c540a04d05aa342cd84606bc8b1e8c05b7b.zip
RDMA/restrack: Add an API to attach a task to a resource
Add rdma_restrack_attach_task() which is able to attach a task other then "current" to a resource. Signed-off-by: Mark Zhang <markz@mellanox.com> Reviewed-by: Majd Dibbiny <majd@mellanox.com> Signed-off-by: Leon Romanovsky <leonro@mellanox.com> Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Diffstat (limited to '')
-rw-r--r--drivers/infiniband/core/restrack.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/infiniband/core/restrack.h b/drivers/infiniband/core/restrack.h
index 09a1fbdf578e..d084e5f89849 100644
--- a/drivers/infiniband/core/restrack.h
+++ b/drivers/infiniband/core/restrack.h
@@ -25,4 +25,6 @@ struct rdma_restrack_root {
int rdma_restrack_init(struct ib_device *dev);
void rdma_restrack_clean(struct ib_device *dev);
+void rdma_restrack_attach_task(struct rdma_restrack_entry *res,
+ struct task_struct *task);
#endif /* _RDMA_CORE_RESTRACK_H_ */