Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 97a32864 authored by Sebastian Andrzej Siewior's avatar Sebastian Andrzej Siewior Committed by Jens Axboe
Browse files

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: default avatarSebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: default avatarJens Axboe <axboe@fb.com>
parent 65d5291e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;
}