Files
i2som-imx-linux/kernel
Peter Zijlstra b75bfc4297 sched: Fix race in task_group()
commit 8323f26ce3 upstream

Stefan reported a crash on a kernel before a3e5d1091c ("sched:
Don't call task_group() too many times in set_task_rq()"), he
found the reason to be that the multiple task_group()
invocations in set_task_rq() returned different values.

Looking at all that I found a lack of serialization and plain
wrong comments.

The below tries to fix it using an extra pointer which is
updated under the appropriate scheduler locks. Its not pretty,
but I can't really see another way given how all the cgroup
stuff works.

Reported-and-tested-by: Stefan Bader <stefan.bader@canonical.com>
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/r/1340364965.18025.71.camel@twins
Signed-off-by: Ingo Molnar <mingo@kernel.org>

(backported to previous file names and layout)
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
2012-08-10 00:11:14 +01:00
..
2011-07-26 16:49:45 -07:00
2011-09-23 12:05:29 +05:30
2012-04-02 09:53:07 -07:00
2011-12-09 07:50:28 -08:00
2012-07-12 04:31:59 +01:00
2012-08-10 00:11:14 +01:00
2011-10-31 17:30:44 -07:00
2011-08-12 16:21:35 -05:00
2011-09-19 17:04:37 -07:00