]> git.ipfire.org Git - people/ms/linux.git/commit
blk-mq: use 'nr_cpu_ids' as highest CPU ID count for hwq <-> cpu map
authorJens Axboe <axboe@fb.com>
Mon, 24 Nov 2014 22:02:42 +0000 (15:02 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 16 Jan 2015 14:59:48 +0000 (06:59 -0800)
commit00de3a6421d5ec132d8f91f450297e06c273b8cc
tree8c895c473ed334553f9931c9eb72c8cf9d778153
parent8c6aa9c5b041ae1267b3baf28a6664299f574abf
blk-mq: use 'nr_cpu_ids' as highest CPU ID count for hwq <-> cpu map

commit a33c1ba2913802b6fb23e974bb2f6a4e73c8b7ce upstream.

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.

Signed-off-by: Jens Axboe <axboe@fb.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
block/blk-mq-cpumap.c