Revision 1978f30a87732d4d9072a20abeded9fe17884f1b authored by Dongli Zhang on 27 March 2019, 10:36:35 UTC, committed by Jens Axboe on 10 April 2019, 14:18:25 UTC
When tag_set->nr_maps is 1, the block layer limits the number of hw queues by nr_cpu_ids. No matter how many hw queues are used by virtio-scsi, as it has (tag_set->nr_maps == 1), it can use at most nr_cpu_ids hw queues. In addition, specifically for pci scenario, when the 'num_queues' specified by qemu is more than maxcpus, virtio-scsi would not be able to allocate more than maxcpus vectors in order to have a vector for each queue. As a result, it falls back into MSI-X with one vector for config and one shared for queues. Considering above reasons, this patch limits the number of hw queues used by virtio-scsi by nr_cpu_ids. Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com> Signed-off-by: Dongli Zhang <dongli.zhang@oracle.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
1 parent bf348f9
File | Mode | Size |
---|---|---|
Kconfig | -rw-r--r-- | 27.3 KB |
Makefile | -rw-r--r-- | 2.4 KB |
mac-celtic.c | -rw-r--r-- | 30.5 KB |
mac-centeuro.c | -rw-r--r-- | 26.4 KB |
mac-croatian.c | -rw-r--r-- | 30.5 KB |
mac-cyrillic.c | -rw-r--r-- | 24.3 KB |
mac-gaelic.c | -rw-r--r-- | 28.4 KB |
mac-greek.c | -rw-r--r-- | 24.3 KB |
mac-iceland.c | -rw-r--r-- | 30.5 KB |
mac-inuit.c | -rw-r--r-- | 26.4 KB |
mac-roman.c | -rw-r--r-- | 32.6 KB |
mac-romanian.c | -rw-r--r-- | 30.5 KB |
mac-turkish.c | -rw-r--r-- | 30.5 KB |
nls_ascii.c | -rw-r--r-- | 5.7 KB |
nls_base.c | -rw-r--r-- | 15.6 KB |
nls_cp1250.c | -rw-r--r-- | 15.0 KB |
nls_cp1251.c | -rw-r--r-- | 12.4 KB |
nls_cp1255.c | -rw-r--r-- | 17.0 KB |
nls_cp437.c | -rw-r--r-- | 17.1 KB |
nls_cp737.c | -rw-r--r-- | 15.1 KB |
nls_cp775.c | -rw-r--r-- | 13.2 KB |
nls_cp850.c | -rw-r--r-- | 13.1 KB |
nls_cp852.c | -rw-r--r-- | 14.5 KB |
nls_cp855.c | -rw-r--r-- | 12.1 KB |
nls_cp857.c | -rw-r--r-- | 12.4 KB |
nls_cp860.c | -rw-r--r-- | 15.8 KB |
nls_cp861.c | -rw-r--r-- | 17.1 KB |
nls_cp862.c | -rw-r--r-- | 19.0 KB |
nls_cp863.c | -rw-r--r-- | 16.8 KB |
nls_cp864.c | -rw-r--r-- | 18.6 KB |
nls_cp865.c | -rw-r--r-- | 17.1 KB |
nls_cp866.c | -rw-r--r-- | 12.3 KB |
nls_cp869.c | -rw-r--r-- | 13.1 KB |
nls_cp874.c | -rw-r--r-- | 10.7 KB |
nls_cp932.c | -rw-r--r-- | 479.7 KB |
nls_cp936.c | -rw-r--r-- | 681.9 KB |
nls_cp949.c | -rw-r--r-- | 854.7 KB |
nls_cp950.c | -rw-r--r-- | 579.9 KB |
nls_euc-jp.c | -rw-r--r-- | 23.8 KB |
nls_iso8859-1.c | -rw-r--r-- | 10.0 KB |
nls_iso8859-13.c | -rw-r--r-- | 11.5 KB |
nls_iso8859-14.c | -rw-r--r-- | 14.5 KB |
nls_iso8859-15.c | -rw-r--r-- | 12.6 KB |
nls_iso8859-2.c | -rw-r--r-- | 12.8 KB |
nls_iso8859-3.c | -rw-r--r-- | 12.8 KB |
nls_iso8859-4.c | -rw-r--r-- | 12.8 KB |
nls_iso8859-5.c | -rw-r--r-- | 10.6 KB |
nls_iso8859-6.c | -rw-r--r-- | 10.2 KB |
nls_iso8859-7.c | -rw-r--r-- | 13.2 KB |
nls_iso8859-9.c | -rw-r--r-- | 10.8 KB |
nls_koi8-r.c | -rw-r--r-- | 13.5 KB |
nls_koi8-ru.c | -rw-r--r-- | 1.6 KB |
nls_koi8-u.c | -rw-r--r-- | 13.9 KB |
nls_utf8.c | -rw-r--r-- | 1.2 KB |
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...