From: Jens Axboe Date: Mon, 24 Nov 2014 22:02:42 +0000 (-0700) Subject: blk-mq: use 'nr_cpu_ids' as highest CPU ID count for hwq <-> cpu map X-Git-Tag: omap-for-v3.19/fixes-rc1~95^2~13 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a33c1ba2913802b6fb23e974bb2f6a4e73c8b7ce;p=pandora-kernel.git 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 --- Reading git-diff-tree failed