summaryrefslogtreecommitdiffstats
path: root/ipc/shm.c
diff options
context:
space:
mode:
authorPeter Zijlstra <a.p.zijlstra@chello.nl>2010-05-06 15:42:53 +0200
committerIngo Molnar <mingo@elte.hu>2010-05-07 11:30:59 +0200
commita0507c84bf47dfd204299774f45fd16da33f0619 (patch)
treed40bf7628ebb9935fb1ef6727337dcd9e2c94fd5 /ipc/shm.c
parentcce913178118b0b36742eb7544c2b38a0c957ee7 (diff)
downloadop-kernel-dev-a0507c84bf47dfd204299774f45fd16da33f0619.zip
op-kernel-dev-a0507c84bf47dfd204299774f45fd16da33f0619.tar.gz
perf: Annotate perf_event_read_group() vs perf_event_release_kernel()
Stephane reported a lockdep warning while using PERF_FORMAT_GROUP. The issue is that perf_event_read_group() takes faults while holding the ctx->mutex, while perf_event_release_kernel() can be called from munmap(). Which makes for an AB-BA deadlock. Except we can never establish the deadlock because we'll only ever call perf_event_release_kernel() after all file descriptors are dead so there is no concurrency possible. Reported-by: Stephane Eranian <eranian@google.com> Cc: Paul Mackerras <paulus@samba.org> Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl> LKML-Reference: <new-submission> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'ipc/shm.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud