]> git.baikalelectronics.ru Git - kernel.git/commit
sched: Fix/clarify set_task_cpu() locking rules
authorPeter Zijlstra <peterz@infradead.org>
Fri, 3 Jun 2011 15:37:07 +0000 (17:37 +0200)
committerIngo Molnar <mingo@elte.hu>
Tue, 7 Jun 2011 10:26:40 +0000 (12:26 +0200)
commitd2c4c17f1f766833f2081e6f6d3f233c48bfff83
treec306ec3d4876b70022b81f577d96ddb1c643c1d5
parent3badbc8133a0dd895f21b3448df40059cf3cd922
sched: Fix/clarify set_task_cpu() locking rules

Sergey reported a CONFIG_PROVE_RCU warning in push_rt_task where
set_task_cpu() was called with both relevant rq->locks held, which
should be sufficient for running tasks since holding its rq->lock
will serialize against sched_move_task().

Update the comments and fix the task_group() lockdep test.

Reported-and-tested-by: Sergey Senozhatsky <sergey.senozhatsky@gmail.com>
Cc: Oleg Nesterov <oleg@redhat.com>
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/r/1307115427.2353.3456.camel@twins
Signed-off-by: Ingo Molnar <mingo@elte.hu>
kernel/sched.c