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)
commit6f10581aeaa5543a3b7a8c7a87a064375ec357f8
tree57b94ae6f96d8a2e12bd8537a54b75d652636e00
parent59ed446f792cc07d37b1536b9c4664d14e25e425
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