]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[PATCH] ppc32: fix destroy_context() race condition
authorGuillaume Autran <gautran@mrv.com>
Wed, 13 Jul 2005 08:10:45 +0000 (01:10 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Wed, 13 Jul 2005 18:25:24 +0000 (11:25 -0700)
commitddca3b80cef36cc668f924ef5154a79acb19ebd7
tree2cfb8ac6837682d975a1cb761360977ac54a6aef
parent88bd5121d635136e01369141367f315665534b3c
[PATCH] ppc32: fix destroy_context() race condition

Fix for a race condition when a task gets preempted by another task while
executing the destroy_context(...) in a FEW_CONTEXTS environment.
mm->context == NO_CONTEXT but the context_map may indicate all contexts are
in use.

The solution to this problem is to disable kernel preemption while
destroying a MMU context.

Signed-off-by: Guillaume Autran <gautran@mrv.com>
Acked-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
include/asm-ppc/mmu_context.h