Skip to content
Snippets Groups Projects
Commit 9c37547a authored by Tejun Heo's avatar Tejun Heo
Browse files

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: default avatarTejun Heo <tj@kernel.org>
Reported-by: default avatarCAI Qian <caiqian@redhat.com>
parent 477a3c33
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment