From: Guillaume Autran Date: Wed, 13 Jul 2005 08:10:45 +0000 (-0700) Subject: [PATCH] ppc32: fix destroy_context() race condition X-Git-Tag: v2.6.13-rc4~124 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ddca3b80cef36cc668f924ef5154a79acb19ebd7;p=pandora-kernel.git [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 Acked-by: Benjamin Herrenschmidt Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed