diff options
| author | Leon Romanovsky <[email protected]> | 2018-10-02 11:48:01 +0300 |
|---|---|---|
| committer | Jason Gunthorpe <[email protected]> | 2018-10-05 16:07:39 -0600 |
| commit | 363ad35577de3a73cf97006ec5f00fccaee73172 (patch) | |
| tree | 28ef71c18435b9d1184c2ef8e08089de3285faba /include | |
| parent | fe33507ec38a8b2e8b782b83669943b7a5fefd4c (diff) | |
RDMA/restrack: Un-inline set task implementation
Prepare rdma_restrack_set_task() call to accommodate more
code by moving its implementation from *.h to *.c.
Reviewed-by: Artemy Kovalyov <[email protected]>
Reviewed-by: Yossi Itigin <[email protected]>
Signed-off-by: Leon Romanovsky <[email protected]>
Reviewed-by: Steve Wise <[email protected]>
Signed-off-by: Jason Gunthorpe <[email protected]>
Diffstat (limited to 'include')
| -rw-r--r-- | include/rdma/restrack.h | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/include/rdma/restrack.h b/include/rdma/restrack.h index 9654d33edd98..0bddbbdbaf7c 100644 --- a/include/rdma/restrack.h +++ b/include/rdma/restrack.h @@ -175,14 +175,8 @@ int rdma_restrack_put(struct rdma_restrack_entry *res); * @res: resource entry * @task: task struct */ -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, + struct task_struct *task); /* * Helper functions for rdma drivers when filling out |