28 lines
796 B
Diff
28 lines
796 B
Diff
Subject: hotplug-stuff.patch
|
|
From: Thomas Gleixner <tglx@linutronix.de>
|
|
Date: Fri, 04 Nov 2011 18:58:24 +0100
|
|
|
|
Do not take lock for non handled cases (might be atomic context)
|
|
|
|
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
|
|
---
|
|
kernel/workqueue.c | 5 +++++
|
|
1 file changed, 5 insertions(+)
|
|
|
|
Index: linux-3.2/kernel/workqueue.c
|
|
===================================================================
|
|
--- linux-3.2.orig/kernel/workqueue.c
|
|
+++ linux-3.2/kernel/workqueue.c
|
|
@@ -3217,6 +3217,11 @@ static int __devinit workqueue_cpu_up_ca
|
|
new_worker = create_worker(gcwq, false);
|
|
if (!new_worker)
|
|
return NOTIFY_BAD;
|
|
+ case CPU_UP_CANCELED:
|
|
+ case CPU_ONLINE:
|
|
+ break;
|
|
+ default:
|
|
+ return notifier_from_errno(0);
|
|
}
|
|
|
|
/* some are called w/ irq disabled, don't disturb irq status */
|