workqueue: fix GCWQ_DISASSOCIATED initialization
authorTejun Heo <tj@kernel.org>
Tue, 31 Aug 2010 08:54:35 +0000 (10:54 +0200)
committerTejun Heo <tj@kernel.org>
Tue, 31 Aug 2010 08:54:35 +0000 (10:54 +0200)
commit477a3c33d1efa0342a74bd02da2e049191993e2c
tree03d4ae1338f47016fbad6ff131007e009959b4a8
parent7c38875a0d0a9b90eee66be79e36995c86acc70c
workqueue: fix GCWQ_DISASSOCIATED initialization

init_workqueues() incorrectly marks workqueues for all possible CPUs
associated.  Combined with mayday_mask initialization bug, this can
make rescuers keep trying to bind to an offline gcwq indefinitely.
Fix init_workqueues() such that only online CPUs have their gcwqs have
GCWQ_DISASSOCIATED cleared.

Signed-off-by: Tejun Heo <tj@kernel.org>
Reported-by: CAI Qian <caiqian@redhat.com>
kernel/workqueue.c