summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2011-11-04 18:58:24 +0100
committerClark Williams <williams@redhat.com>2011-12-28 16:25:48 -0600
commit383e5d051ec0fba499c1d15532c57cc137966386 (patch)
treec84fde26ed5f8ef67e0c29b16fc95da3f1629ea3
parentb901b99602e89e0cb63b210ef6362e8fb886b190 (diff)
hotplug-stuff.patch
Do not take lock for non handled cases (might be atomic context) Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
-rw-r--r--kernel/workqueue.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/kernel/workqueue.c b/kernel/workqueue.c
index ac3a3bb3acf2..e7f3e79184dd 100644
--- a/kernel/workqueue.c
+++ b/kernel/workqueue.c
@@ -3217,6 +3217,11 @@ static int __devinit workqueue_cpu_up_callback(struct notifier_block *nfb,
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 */