diff options
author | Sebastian Andrzej Siewior <bigeasy@linutronix.de> | 2016-09-23 15:02:38 +0200 |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2016-09-23 17:49:32 +0200 |
commit | 97a32864e6de5944c6356049f60569de01e9ba1f (patch) | |
tree | 76f5a1818cd0323ae09debb061a3f23d625ca2d6 /block/blk-mq.c | |
parent | blk-mq: Convert to new hotplug state machine (diff) | |
download | linux-97a32864e6de5944c6356049f60569de01e9ba1f.tar.xz linux-97a32864e6de5944c6356049f60569de01e9ba1f.zip |
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: 65d5291eee66 ("blk-mq: Convert to new hotplug state machine")
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'block/blk-mq.c')
-rw-r--r-- | block/blk-mq.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/block/blk-mq.c b/block/blk-mq.c index 65347cb7d7e1..8c0f80198e52 100644 --- a/block/blk-mq.c +++ b/block/blk-mq.c @@ -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; } |