]> git.baikalelectronics.ru Git - kernel.git/commit
perf: Ensure we call add_event_to_ctx() with the right locks held
authorPeter Zijlstra <a.p.zijlstra@chello.nl>
Fri, 10 Sep 2010 10:51:54 +0000 (12:51 +0200)
committerIngo Molnar <mingo@elte.hu>
Fri, 10 Sep 2010 14:24:33 +0000 (16:24 +0200)
commitd2328f0058d60d41f97a988e9d5e70d6c2475b07
treedae35fd772d7e18db94b320a0ffc97e55e719d0e
parent9565818e3a15088794ad55a803d6192e75c8f4cd
perf: Ensure we call add_event_to_ctx() with the right locks held

Even though we call it from the inherit path, where the child is
not yet accessible, we need to hold ctx->lock, add_event_to_ctx()
assumes IRQs are disabled.

Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
LKML-Reference: <new-submission>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
kernel/perf_event.c