summaryrefslogtreecommitdiffstats
path: root/include/rdma
diff options
context:
space:
mode:
authorLeon Romanovsky <leonro@mellanox.com>2018-10-02 11:48:02 +0300
committerJason Gunthorpe <jgg@mellanox.com>2018-10-05 16:07:39 -0600
commit2165fc264079ecb7fbfa5e8b330a92eb3f0fcbe1 (patch)
tree3363cce91e6438d83b44de997486e5ea6dda8a79 /include/rdma
parent363ad35577de3a73cf97006ec5f00fccaee73172 (diff)
downloadlinux-stable-2165fc264079ecb7fbfa5e8b330a92eb3f0fcbe1.tar.gz
linux-stable-2165fc264079ecb7fbfa5e8b330a92eb3f0fcbe1.tar.bz2
linux-stable-2165fc264079ecb7fbfa5e8b330a92eb3f0fcbe1.zip
RDMA/restrack: Consolidate task name updates in one place
Unify task update and kernel name set in one place. Reviewed-by: Artemy Kovalyov <artemyko@mellanox.com> Reviewed-by: Yossi Itigin <yosefe@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 'include/rdma')
-rw-r--r--include/rdma/restrack.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/rdma/restrack.h b/include/rdma/restrack.h
index 0bddbbdbaf7c..2638fa7cd702 100644
--- a/include/rdma/restrack.h
+++ b/include/rdma/restrack.h
@@ -173,10 +173,10 @@ int rdma_restrack_put(struct rdma_restrack_entry *res);
/**
* rdma_restrack_set_task() - set the task for this resource
* @res: resource entry
- * @task: task struct
+ * @caller: kernel name, the current task will be used if the caller is NULL.
*/
void rdma_restrack_set_task(struct rdma_restrack_entry *res,
- struct task_struct *task);
+ const char *caller);
/*
* Helper functions for rdma drivers when filling out