Messages in this thread | | | From | Daniel Vacek <> | Subject | Re: [tip:locking/core] sched/wake_q: Reduce reference counting for special users | Date | Tue, 12 Feb 2019 15:14:52 +0100 |
| |
> diff --git a/kernel/futex.c b/kernel/futex.c > index 69e619baf709..2abe1a0b3062 100644 > --- a/kernel/futex.c > +++ b/kernel/futex.c > @@ -1463,8 +1463,7 @@ static void mark_wake_futex(struct wake_q_head *wake_q, struct futex_q *q) > * Queue the task for later wakeup for after we've released > * the hb->lock. wake_q_add() grabs reference to p.
Should this comment be fixed as well?
--nX
> */ > - wake_q_add(wake_q, p); > - put_task_struct(p); > + wake_q_add_safe(wake_q, p); > } > > /*
| |