From: Peter Zijlstra Date: Wed, 14 Jan 2009 14:36:26 +0000 (+0100) Subject: mutex: preemption fixes X-Git-Tag: v2.6.30-rc1~216^2~38 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=41719b03091911028116155deddc5eedf8c45e37;p=pandora-kernel.git mutex: preemption fixes The problem is that dropping the spinlock right before schedule is a voluntary preemption point and can cause a schedule, right after which we schedule again. Fix this inefficiency by keeping preemption disabled until we schedule, do this by explicity disabling preemption and providing a schedule() variant that assumes preemption is already disabled. Signed-off-by: Peter Zijlstra Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed