1
0
Files
linux/kernel
Lai Jiangshan 13337714f3 cpuset: rcu_read_lock() to protect task_cs()
task_cs() calls task_subsys_state().

We must use rcu_read_lock() to protect cgroup_subsys_state().

It's correct that top_cpuset is never freed, but cgroup_subsys_state()
accesses css_set, this css_set maybe freed when task_cs() called.

We use use rcu_read_lock() to protect it.

Signed-off-by: Lai Jiangshan <laijs@cn.fujitsu.com>
Acked-by: Paul Menage <menage@google.com>
Cc: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Cc: Pavel Emelyanov <xemul@openvz.org>
Cc: Balbir Singh <balbir@in.ibm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2009-01-08 08:31:11 -08:00
..
2009-01-08 08:31:10 -08:00
2008-11-24 18:57:41 -05:00
2009-01-06 15:59:27 -08:00
2008-12-10 08:01:54 -08:00
2009-01-08 08:31:02 -08:00
2009-01-05 13:09:49 +01:00
2009-01-06 11:07:15 +01:00
2009-01-07 16:10:54 +01:00
2008-11-19 18:49:57 -08:00
2008-12-31 15:11:46 +01:00