From: Oleg Nesterov Date: Wed, 9 May 2007 09:34:15 +0000 (-0700) Subject: workqueues: shift kthread_bind() from CPU_UP_PREPARE to CPU_ONLINE X-Git-Tag: v2.6.22-rc1~224 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=06ba38a9a0f6ceffe70343f684c5a690e3710ef4;p=pandora-kernel.git 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 Cc: Gautham R Shenoy Cc: "Rafael J. Wysocki" Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed