diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2011-11-04 18:58:24 +0100 |
---|---|---|
committer | Clark Williams <williams@redhat.com> | 2012-04-13 11:01:46 -0500 |
commit | 5531cd2a6a76bda0a16c24a6c3ff36d169918b16 (patch) | |
tree | 502a9f92db7f94743da3ab6d8b877b570859b863 | |
parent | 276ba9d9b15b22f180ebfa04203ccfd4d5c679b3 (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.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/kernel/workqueue.c b/kernel/workqueue.c index d3da5a8f7f09..bc867e8c5ca9 100644 --- a/kernel/workqueue.c +++ b/kernel/workqueue.c @@ -3215,6 +3215,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 */ |