Re: [PATCH v2] sched/wake_q: Reduce reference counting for special users

From: Davidlohr Bueso
Date: Tue Dec 18 2018 - 14:40:10 EST


On Tue, 18 Dec 2018, Davidlohr Bueso wrote:
+void wake_q_add_safe(struct wake_q_head *head, struct task_struct *task)
+{
+ if (!__wake_q_add(head, task))
+ get_task_struct(task);

*sigh* and this should be put().