]> git.baikalelectronics.ru Git - kernel.git/commit
perf_counter: Fix cpuctx->task_ctx races
authorIngo Molnar <mingo@elte.hu>
Fri, 29 May 2009 09:25:09 +0000 (11:25 +0200)
committerIngo Molnar <mingo@elte.hu>
Fri, 29 May 2009 12:28:36 +0000 (14:28 +0200)
commit37fd9842c36922e60d4182ca18e5b3640be297c0
tree9aa0311f0c4f961a2c2cab1d2fbb0994cff1b6d9
parent4ae3012c76336902e922843b03fc4642808d55d3
perf_counter: Fix cpuctx->task_ctx races

Peter noticed that we are sometimes reading cpuctx->task_ctx with
interrupts enabled.

Noticed-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Acked-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Corey Ashford <cjashfor@linux.vnet.ibm.com>
Cc: Marcelo Tosatti <mtosatti@redhat.com>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: John Kacur <jkacur@redhat.com>
LKML-Reference: <new-submission>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
kernel/perf_counter.c