From: Sam Bradshaw Date: Tue, 29 Jul 2014 20:31:36 +0000 (-0700) Subject: NVMe: Correctly handle IOCTL_SUBMIT_IO when cpus > online queues X-Git-Tag: omap-for-v3.19/fixes-rc1~94^2~45 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5905535610fc6b11379a999ff45bfa39f0d605b6;p=pandora-kernel.git NVMe: Correctly handle IOCTL_SUBMIT_IO when cpus > online queues nvme_submit_io_cmd() uses smp_processor_id() to pick an IO queue index. This patch fixes the case where there are more cpus from which the ioctl call can originate than online queues, which can happen when a device supports or was allocated fewer interrupt vectors than exist cpu cores. Thanks to Keith Busch for the implementation suggestion. Signed-off-by: Sam Bradshaw Signed-off-by: Matthew Wilcox Signed-off-by: Jens Axboe --- Reading git-diff-tree failed