]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita35e675792159b50b9753efa1f0ec9012ad0969c
treed575083d37a069be585d575ec036faa8765f1d0c
parent04d4b305d9a3203dec3ce82f471b6824a642e2dd
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