trim task_work: get rid of hlist
layout based on Oleg's suggestion; single-linked list, task->task_works points to the last element, forward pointer from said last element points to head. I'd still prefer much more regular scheme with two pointers in task_work, but... Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
@@ -192,7 +192,7 @@ static inline void tracehook_notify_resume(struct pt_regs *regs)
|
||||
* hlist_add_head(task->task_works);
|
||||
*/
|
||||
smp_mb__after_clear_bit();
|
||||
if (unlikely(!hlist_empty(¤t->task_works)))
|
||||
if (unlikely(current->task_works))
|
||||
task_work_run();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user