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-- | 1.4 KB |
Makefile | -rw-r--r-- | 343 bytes |
acl.c | -rw-r--r-- | 3.2 KB |
acl.h | -rw-r--r-- | 743 bytes |
aops.c | -rw-r--r-- | 23.9 KB |
aops.h | -rw-r--r-- | 587 bytes |
bmap.c | -rw-r--r-- | 63.6 KB |
bmap.h | -rw-r--r-- | 2.2 KB |
dentry.c | -rw-r--r-- | 2.7 KB |
dir.c | -rw-r--r-- | 52.2 KB |
dir.h | -rw-r--r-- | 2.6 KB |
export.c | -rw-r--r-- | 4.7 KB |
file.c | -rw-r--r-- | 33.1 KB |
gfs2.h | -rw-r--r-- | 524 bytes |
glock.c | -rw-r--r-- | 53.5 KB |
glock.h | -rw-r--r-- | 8.9 KB |
glops.c | -rw-r--r-- | 16.6 KB |
glops.h | -rw-r--r-- | 1.1 KB |
incore.h | -rw-r--r-- | 23.4 KB |
inode.c | -rw-r--r-- | 48.9 KB |
inode.h | -rw-r--r-- | 4.2 KB |
lock_dlm.c | -rw-r--r-- | 39.1 KB |
log.c | -rw-r--r-- | 28.1 KB |
log.h | -rw-r--r-- | 2.4 KB |
lops.c | -rw-r--r-- | 21.6 KB |
lops.h | -rw-r--r-- | 3.0 KB |
main.c | -rw-r--r-- | 6.0 KB |
meta_io.c | -rw-r--r-- | 10.7 KB |
meta_io.h | -rw-r--r-- | 2.6 KB |
ops_fstype.c | -rw-r--r-- | 34.8 KB |
quota.c | -rw-r--r-- | 42.5 KB |
quota.h | -rw-r--r-- | 2.2 KB |
recovery.c | -rw-r--r-- | 13.5 KB |
recovery.h | -rw-r--r-- | 1.3 KB |
rgrp.c | -rw-r--r-- | 71.4 KB |
rgrp.h | -rw-r--r-- | 3.5 KB |
super.c | -rw-r--r-- | 42.4 KB |
super.h | -rw-r--r-- | 1.9 KB |
sys.c | -rw-r--r-- | 17.8 KB |
sys.h | -rw-r--r-- | 659 bytes |
trace_gfs2.h | -rw-r--r-- | 17.5 KB |
trans.c | -rw-r--r-- | 7.1 KB |
trans.h | -rw-r--r-- | 1.5 KB |
util.c | -rw-r--r-- | 7.5 KB |
util.h | -rw-r--r-- | 5.1 KB |
xattr.c | -rw-r--r-- | 32.0 KB |
xattr.h | -rw-r--r-- | 2.0 KB |
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...