From: Matthew Wilcox Date: Thu, 20 Jun 2013 14:53:48 +0000 (-0400) Subject: NVMe: Restructure MSI / MSI-X setup X-Git-Tag: v3.12-rc1~98^2~17 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=063a8096f3dbca7521d5918b3aea7ab46c5d2fe9;p=pandora-kernel.git NVMe: Restructure MSI / MSI-X setup The current code copies 'nr_io_queues' into 'q_count', modifies 'nr_io_queues' during MSI-X setup, then resets 'nr_io_queues' for MSI setup. Instead, copy 'nr_io_queues' into 'vecs' and modify 'vecs' during both MSI-X and MSI setup. This lets us simplify the for-loops that set up MSI-X and MSI, and opens the possibility of using more I/O queues than we have interrupt vectors, should future benchmarking prove that to be a useful feature. Signed-off-by: Matthew Wilcox --- Reading git-diff-tree failed