diff options
author | Matthew Wilcox <matthew.r.wilcox@intel.com> | 2013-06-20 16:53:48 +0200 |
---|---|---|
committer | Matthew Wilcox <matthew.r.wilcox@intel.com> | 2013-06-20 17:09:23 +0200 |
commit | 063a8096f3dbca7521d5918b3aea7ab46c5d2fe9 (patch) | |
tree | 24007515e6df6c7b78a100508884a5889a8ff789 /drivers/ata | |
parent | NVMe: Use kzalloc instead of kmalloc+memset (diff) | |
download | linux-063a8096f3dbca7521d5918b3aea7ab46c5d2fe9.tar.xz linux-063a8096f3dbca7521d5918b3aea7ab46c5d2fe9.zip |
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>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions