sched: silence PROVE_RCU in sched_fork()
authorPeter Zijlstra <peterz@infradead.org>
Tue, 22 Jun 2010 09:44:53 +0000 (11:44 +0200)
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Wed, 23 Jun 2010 22:14:09 +0000 (15:14 -0700)
commit8695159967957015f8dfb49315d6f88e111d90e0
treed575083d37a069be585d575ec036faa8765f1d0c
parent94bfa3b6692c7a3f6f119596724204ec975d3ef0
sched: silence PROVE_RCU in sched_fork()

Because cgroup_fork() is ran before sched_fork() [ from copy_process() ]
and the child's pid is not yet visible the child is pinned to its
cgroup. Therefore we can silence this warning.

A nicer solution would be moving cgroup_fork() to right after
dup_task_struct() and exclude PF_STARTING from task_subsys_state().

Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Reviewed-by: Li Zefan <lizf@cn.fujitsu.com>
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
kernel/sched.c