Re: [RFC][PATCH] sched: Fix race in task_group()

Peter Zijlstra
2012-06-22T15:15:17Z

On Fri, 2012-06-22 at 17:06 +0200, Stefan Bader wrote:
> > @@ -7595,6 +7597,11 @@ void sched_move_task(struct task_struct *tsk)
> > if (unlikely(running))
> > tsk->sched_class->put_prev_task(rq, tsk);
> >
> > + tg = container_of(task_subsys_state(p, cpu_cgroup_subsys_id),
> s/p/tsk/
> > + struct task_group, css);
> > + tg = autogroup_task_group(p, tg);
> s/p/tsk/
> > + tsk->sched_task_group = tg;
> > +

Hmm, I'm very sure I at least compiled a kernel after this.. must've
been the wrong machine.. /me dons a brown paper bag.