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

Skip to content
Commit a33c1ba2 authored by Jens Axboe's avatar Jens Axboe
Browse files

blk-mq: use 'nr_cpu_ids' as highest CPU ID count for hwq <-> cpu map



We currently use num_possible_cpus(), but that breaks on sparc64 where
the CPU ID space is discontig. Use nr_cpu_ids as the highest CPU ID
instead, so we don't end up reading from invalid memory.

Cc: stable@kernel.org # 3.13+
Signed-off-by: default avatarJens Axboe <axboe@fb.com>
parent 394ffa50
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment