diff options
Diffstat (limited to 'include/linux/task_work.h')
-rw-r--r-- | include/linux/task_work.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/task_work.h b/include/linux/task_work.h index 627421c0e108..3b3e2c8d037b 100644 --- a/include/linux/task_work.h +++ b/include/linux/task_work.h | |||
@@ -8,7 +8,7 @@ struct task_work; | |||
8 | typedef void (*task_work_func_t)(struct task_work *); | 8 | typedef void (*task_work_func_t)(struct task_work *); |
9 | 9 | ||
10 | struct task_work { | 10 | struct task_work { |
11 | struct hlist_node hlist; | 11 | struct task_work *next; |
12 | task_work_func_t func; | 12 | task_work_func_t func; |
13 | }; | 13 | }; |
14 | 14 | ||
@@ -24,7 +24,7 @@ void task_work_run(void); | |||
24 | 24 | ||
25 | static inline void exit_task_work(struct task_struct *task) | 25 | static inline void exit_task_work(struct task_struct *task) |
26 | { | 26 | { |
27 | if (unlikely(!hlist_empty(&task->task_works))) | 27 | if (unlikely(task->task_works)) |
28 | task_work_run(); | 28 | task_work_run(); |
29 | } | 29 | } |
30 | 30 | ||