perf_counter: Sanitize counter->mutex
authorPeter Zijlstra <a.p.zijlstra@chello.nl>
Sat, 23 May 2009 16:28:56 +0000 (18:28 +0200)
committerIngo Molnar <mingo@elte.hu>
Sat, 23 May 2009 17:37:45 +0000 (19:37 +0200)
commitfccc714b3148ab9741fafc1e90c3876d50df6093
treee536e75faf15f4db8ec653e7303ad9f41cc5c186
parente220d2dcb944c5c488b6855d15ec66d76900514f
perf_counter: Sanitize counter->mutex

s/counter->mutex/counter->child_mutex/ and make sure its only
used to protect child_list.

The usage in __perf_counter_exit_task() doesn't appear to be
problematic since ctx->mutex also covers anything related to fd
tear-down.

Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Corey Ashford <cjashfor@linux.vnet.ibm.com>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: John Kacur <jkacur@redhat.com>
LKML-Reference: <20090523163012.533186528@chello.nl>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
include/linux/perf_counter.h
kernel/perf_counter.c