]> git.baikalelectronics.ru Git - kernel.git/commit
workqueue: use zalloc_cpumask_var() for gcwq->mayday_mask
authorTejun Heo <tj@kernel.org>
Tue, 31 Aug 2010 09:18:34 +0000 (11:18 +0200)
committerTejun Heo <tj@kernel.org>
Tue, 31 Aug 2010 09:18:34 +0000 (11:18 +0200)
commit33cb40b45cbec9ffaa1b3f192c9a5d6dde56da2b
tree2a9c3655e25c93b4c3ce49c575d5d908045ebdd4
parentbfd8bd9d8e9036cea9ae2f4be72febaeb68f3a53
workqueue: use zalloc_cpumask_var() for gcwq->mayday_mask

alloc_mayday_mask() was using alloc_cpumask_var() making
gcwq->mayday_mask contain garbage after initialization on
CONFIG_CPUMASK_OFFSTACK=y configurations.  This combined with the
previously fixed GCWQ_DISASSOCIATED initialization bug could make
rescuers fall into infinite loop trying to bind to an offline cpu.

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