]> git.karo-electronics.de Git - linux-beck.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)
commit3f4dee227348daac32f36daad9a91059efd0723e
tree9aa0311f0c4f961a2c2cab1d2fbb0994cff1b6d9
parentad3a37de81c45f6c20d410ece86004b98f7b6d84
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