[PATCH] x86_64: Fix race in cpu_local_* on preemptible kernels
authorAndi Kleen <ak@suse.de>
Mon, 26 Jun 2006 11:59:20 +0000 (13:59 +0200)
committerLinus Torvalds <torvalds@g5.osdl.org>
Mon, 26 Jun 2006 17:48:21 +0000 (10:48 -0700)
commitda5311258d2afb96fc592c8b11e818facfa46dc3
treecdd51f187028cb2cd3da716cb7c1b3df88902ed6
parent75bd665cc9f4d0f67164d9145e446ae554d4ed3f
[PATCH] x86_64: Fix race in cpu_local_* on preemptible kernels

When a process changes CPUs while doing the non atomic cpu_local_*
operations it might operate on the local_t of a different CPUs.

Fix that by disabling preemption.

Pointed out by Christopher Lameter

Signed-off-by: Andi Kleen <ak@suse.de>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
include/asm-i386/local.h
include/asm-x86_64/local.h