Dongli Zhang bf348f9b78 virtio-blk: limit number of hw queues by nr_cpu_ids
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-blk, 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-blk 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-blk 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>
2019-04-10 08:18:24 -06:00
..
2018-12-16 09:01:38 -07:00
2019-01-02 18:49:58 -08:00
2019-03-08 14:12:17 -08:00
2018-10-25 06:50:48 -07:00
2019-03-08 14:12:17 -08:00
2018-10-17 09:42:30 -06:00
2018-10-17 09:42:30 -06:00
2019-02-28 14:06:37 -07:00
2018-10-15 20:07:56 -06:00
2017-02-20 12:16:15 +01:00
2019-03-20 16:27:40 +01:00
2019-02-15 08:40:12 -07:00
2017-08-18 08:45:29 -06:00
2009-03-26 21:15:27 +01:00
2018-10-16 09:49:18 -06:00
2018-11-09 08:14:14 -07:00
2019-02-15 08:40:12 -07:00
2018-10-26 14:36:21 -07:00