Merge tag 'for-linus' of git://git.kernel.org/pub/scm/virt/kvm/kvm
[sfrench/cifs-2.6.git] / include / linux / task_work.h
index fb46b03b18522752538bfae6e192804e9629fc2a..ca5a1cf27daeb9487303dd29d9c58a9e571ecfb4 100644 (file)
@@ -18,8 +18,7 @@ void task_work_run(void);
 
 static inline void exit_task_work(struct task_struct *task)
 {
-       if (unlikely(task->task_works))
-               task_work_run();
+       task_work_run();
 }
 
 #endif /* _LINUX_TASK_WORK_H */