diff options
Diffstat (limited to 'include/linux/task_work.h')
-rw-r--r-- | include/linux/task_work.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/include/linux/task_work.h b/include/linux/task_work.h index fb46b03b1852..ca5a1cf27dae 100644 --- a/include/linux/task_work.h +++ b/include/linux/task_work.h | |||
@@ -18,8 +18,7 @@ void task_work_run(void); | |||
18 | 18 | ||
19 | static inline void exit_task_work(struct task_struct *task) | 19 | static inline void exit_task_work(struct task_struct *task) |
20 | { | 20 | { |
21 | if (unlikely(task->task_works)) | 21 | task_work_run(); |
22 | task_work_run(); | ||
23 | } | 22 | } |
24 | 23 | ||
25 | #endif /* _LINUX_TASK_WORK_H */ | 24 | #endif /* _LINUX_TASK_WORK_H */ |