]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - include/rdma/restrack.h
Merge tag 'devicetree-fixes-for-4.20-1' of git://git.kernel.org/pub/scm/linux/kernel...
[linux.git] / include / rdma / restrack.h
index 9654d33edd989765abfe9c98e1f15334bff01d40..2638fa7cd702178afcd1d8bb7a8cdf464d4f2372 100644 (file)
@@ -173,16 +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.
  */
-static inline void rdma_restrack_set_task(struct rdma_restrack_entry *res,
-                                         struct task_struct *task)
-{
-       if (res->task)
-               put_task_struct(res->task);
-       get_task_struct(task);
-       res->task = task;
-}
+void rdma_restrack_set_task(struct rdma_restrack_entry *res,
+                           const char *caller);
 
 /*
  * Helper functions for rdma drivers when filling out