]> git.baikalelectronics.ru Git - kernel.git/commit
NVMe: Restructure MSI / MSI-X setup
authorMatthew Wilcox <matthew.r.wilcox@intel.com>
Thu, 20 Jun 2013 14:53:48 +0000 (10:53 -0400)
committerMatthew Wilcox <matthew.r.wilcox@intel.com>
Thu, 20 Jun 2013 15:09:23 +0000 (11:09 -0400)
commit6fb36e7a6d0a9db37f1f533f21f2d3ede017624c
tree24007515e6df6c7b78a100508884a5889a8ff789
parent2168eeff7a383423b577e23b443cb370042aaefc
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 <matthew.r.wilcox@intel.com>
drivers/block/nvme-core.c