]> git.baikalelectronics.ru Git - kernel.git/commit
perf: Fix locking for PERF_FORMAT_GROUP
authorPeter Zijlstra <a.p.zijlstra@chello.nl>
Fri, 20 Nov 2009 21:19:56 +0000 (22:19 +0100)
committerIngo Molnar <mingo@elte.hu>
Sat, 21 Nov 2009 13:11:40 +0000 (14:11 +0100)
commit1bf9e6ca29013bc0505e461c657571a898ec8a13
tree57b94ae6f96d8a2e12bd8537a54b75d652636e00
parent8f07fc89e053fad86d31ef59aa320e53e1481fcb
perf: Fix locking for PERF_FORMAT_GROUP

We should hold event->child_mutex when iterating the inherited
counters, we should hold ctx->mutex when iterating siblings.

Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Paul Mackerras <paulus@samba.org>
LKML-Reference: <20091120212509.251030114@chello.nl>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
kernel/perf_event.c