patch x86-fix-smp-alternatives-use-mutex-instead-of-spinlock-text_poke-is-sleepable.patch added to 2.6.26-stable tree

Previous thread: [patch x86/core] x86: allow number of additional hotplug CPUs to be set at compile time by Chuck Ebbert on Wednesday, October 1, 2008 - 4:19 pm. (22 messages)

Next thread: [PATCH 00/03] RDMA Transport Support for 9P by Tom Tucker on Wednesday, October 1, 2008 - 5:08 pm. (7 messages)

This is a note to let you know that we have just queued up the patch titled

    Subject: x86: fix SMP alternatives: use mutex instead of spinlock, text_poke is sleepable

to the 2.6.26-stable tree.  Its filename is

    x86-fix-smp-alternatives-use-mutex-instead-of-spinlock-text_poke-is-sleepable.patch

A git repo of this tree can be found at 
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary


From mingo@elte.hu  Wed Oct  1 16:51:38 2008
From: Pekka Paalanen <pq@iki.fi>
Date: Mon, 12 May 2008 21:21:01 +0200
Subject: x86: fix SMP alternatives: use mutex instead of spinlock, text_poke is sleepable
To: Raz <raziebe@gmail.com>, stable@kernel.org
Cc: the arch/x86 maintainers <x86@kernel.org>, Mathieu Desnoyers <mathieu.desnoyers@polymtl.ca>, Vegard Nossum <vegard.nossum@gmail.com>, carlos@strangeworlds.co.uk, Pekka Paalanen <pq@iki.fi>, Linux Kernel <linux-kernel@vger.kernel.org>, linux-acpi@vger.kernel.org
Message-ID: <20080914134233.GE554@elte.hu>
Content-Disposition: inline

From: Pekka Paalanen <pq@iki.fi>

commit 2f1dafe50cc4e58a239fd81bd47f87f32042a1ee upstream

text_poke is sleepable.
The original fix by Mathieu Desnoyers <mathieu.desnoyers@polymtl.ca>.

Signed-off-by: Pekka Paalanen <pq@iki.fi>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

---
 arch/x86/kernel/alternative.c |   18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

--- a/arch/x86/kernel/alternative.c
+++ b/arch/x86/kernel/alternative.c
@@ -1,6 +1,6 @@
 #include <linux/module.h>
 #include <linux/sched.h>
-#include <linux/spinlock.h>
+#include <linux/mutex.h>
 #include <linux/list.h>
 #include <linux/kprobes.h>
 #include <linux/mm.h>
@@ -279,7 +279,7 @@ struct smp_alt_module {
 	struct list_head next;
 };
 static LIST_HEAD(smp_alt_modules);
-static DEFINE_SPINLOCK(smp_alt);
+static DEFINE_MUTEX(smp_alt);
 static int smp_mode = 1;	/* ...
Previous thread: [patch x86/core] x86: allow number of additional hotplug CPUs to be set at compile time by Chuck Ebbert on Wednesday, October 1, 2008 - 4:19 pm. (22 messages)

Next thread: [PATCH 00/03] RDMA Transport Support for 9P by Tom Tucker on Wednesday, October 1, 2008 - 5:08 pm. (7 messages)