diff options
author | Peter Zijlstra <peterz@infradead.org> | 2011-06-03 17:37:07 +0200 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2011-06-07 12:26:40 +0200 |
commit | 6c6c54e1807faf116724451ef2bd14993780470a (patch) | |
tree | c306ec3d4876b70022b81f577d96ddb1c643c1d5 /include/linux/sched.h | |
parent | f2513cde93f0957d5dc6c09bc24b0cccd27d8e1d (diff) |
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>
Diffstat (limited to 'include/linux/sched.h')
0 files changed, 0 insertions, 0 deletions