summaryrefslogtreecommitdiffstats
path: root/block/blk-mq-tag.c
diff options
context:
space:
mode:
authorJens Axboe2014-11-24 23:02:42 +0100
committerJens Axboe2014-11-24 23:02:42 +0100
commita33c1ba2913802b6fb23e974bb2f6a4e73c8b7ce (patch)
treef1dbb27e9804ed4f8368e4eb0169b7325ec0792f /block/blk-mq-tag.c
parentblk: introduce generic io stat accounting help function (diff)
downloadkernel-qcow2-linux-a33c1ba2913802b6fb23e974bb2f6a4e73c8b7ce.tar.gz
kernel-qcow2-linux-a33c1ba2913802b6fb23e974bb2f6a4e73c8b7ce.tar.xz
kernel-qcow2-linux-a33c1ba2913802b6fb23e974bb2f6a4e73c8b7ce.zip
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: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'block/blk-mq-tag.c')
0 files changed, 0 insertions, 0 deletions