diff options
author | Oleg Nesterov <oleg@tv-sign.ru> | 2007-05-09 02:34:15 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-05-09 12:30:52 -0700 |
commit | 06ba38a9a0f6ceffe70343f684c5a690e3710ef4 (patch) | |
tree | 500f4d8a3be212ececa80ead44d9658c8b7a4ce1 /kernel/extable.c | |
parent | c12920d19078eb8fd99560ec232a6e05c6ff1aa8 (diff) | |
download | linux-06ba38a9a0f6ceffe70343f684c5a690e3710ef4.tar.gz linux-06ba38a9a0f6ceffe70343f684c5a690e3710ef4.tar.bz2 linux-06ba38a9a0f6ceffe70343f684c5a690e3710ef4.zip |
workqueues: shift kthread_bind() from CPU_UP_PREPARE to CPU_ONLINE
CPU_UP_PREPARE binds cwq->thread to the new CPU. So CPU_UP_CANCELED tries to
wake up the task which is bound to the failed CPU.
With this patch we don't bind cwq->thread until CPU becomes online. The first
wake_up() after kthread_create() is a bit special, make a simple helper for
that.
Signed-off-by: Oleg Nesterov <oleg@tv-sign.ru>
Cc: Gautham R Shenoy <ego@in.ibm.com>
Cc: "Rafael J. Wysocki" <rjw@sisk.pl>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'kernel/extable.c')
0 files changed, 0 insertions, 0 deletions