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

Davidlohr Bueso
2018-12-18T19:40:09Z

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().