提交 97a32864 编写于 作者: S Sebastian Andrzej Siewior 提交者: Jens Axboe

blk-mq: fixup "Convert to new hotplug state machine"

The "blk_mq_queue_reinit_dead()" just cleared the cpumask instead doing
a copy. Since we might never had an online callback we could end up with
a ZERO mask which in turn leads to crash as test robot demonstarted.

Fixes: 65d5291e ("blk-mq: Convert to new hotplug state machine")
Signed-off-by: NSebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: NJens Axboe <axboe@fb.com>
上级 65d5291e
......@@ -2158,7 +2158,7 @@ static void blk_mq_queue_reinit_work(void)
static int blk_mq_queue_reinit_dead(unsigned int cpu)
{
cpumask_clear_cpu(cpu, &cpuhp_online_new);
cpumask_copy(&cpuhp_online_new, cpu_online_mask);
blk_mq_queue_reinit_work();
return 0;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册