diff options
author | 2011-05-26 11:52:04 -0400 | |
---|---|---|
committer | 2011-05-26 11:52:04 -0400 | |
commit | 7a0287df3e83a0012dfc496d4a8af9c1c5b126ef (patch) | |
tree | 27cc2f768de7e9014ffa899117bf219d0f20fb5e /kernel/workqueue.c | |
parent | arch/tile: prefer "tilepro" as the name of the 32-bit architecture (diff) | |
parent | Linux 2.6.39 (diff) | |
download | linux-rng-7a0287df3e83a0012dfc496d4a8af9c1c5b126ef.tar.xz linux-rng-7a0287df3e83a0012dfc496d4a8af9c1c5b126ef.zip |
Merge tag 'v2.6.39' of git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6 into for-linus
Diffstat (limited to 'kernel/workqueue.c')
-rw-r--r-- | kernel/workqueue.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/kernel/workqueue.c b/kernel/workqueue.c index 8859a41806dd..e3378e8d3a5c 100644 --- a/kernel/workqueue.c +++ b/kernel/workqueue.c @@ -1291,8 +1291,14 @@ __acquires(&gcwq->lock) return true; spin_unlock_irq(&gcwq->lock); - /* CPU has come up in between, retry migration */ + /* + * We've raced with CPU hot[un]plug. Give it a breather + * and retry migration. cond_resched() is required here; + * otherwise, we might deadlock against cpu_stop trying to + * bring down the CPU on non-preemptive kernel. + */ cpu_relax(); + cond_resched(); } } |