summaryrefslogtreecommitdiff
path: root/drivers/scsi/scsi_lib.c
diff options
context:
space:
mode:
authorRichard W.M. Jones <rjones@redhat.com>2017-08-10 17:56:52 +0100
committerMartin K. Petersen <martin.petersen@oracle.com>2017-08-24 22:28:51 -0400
commit582b0ab200105b06704cef6da814fbde4c2ca00b (patch)
tree56ac16fe5cfd4459b34b7f7a49a8639c59e1ed7a /drivers/scsi/scsi_lib.c
parent44ed8089e991a60d614abe0ee4b9057a28b364e4 (diff)
downloadlinux-582b0ab200105b06704cef6da814fbde4c2ca00b.tar.gz
linux-582b0ab200105b06704cef6da814fbde4c2ca00b.tar.xz
scsi: virtio: virtio_scsi: Set can_queue to the length of the virtqueue.
Since switching to blk-mq as the default in commit 5c279bd9e406 ("scsi: default to scsi-mq"), virtio-scsi LUNs consume about 10x as much kernel memory. qemu currently allocates a fixed 128 entry virtqueue. can_queue currently is set to 1024. But with indirect descriptors, each command in the queue takes 1 virtqueue entry, so the number of commands which can be queued is equal to the length of the virtqueue. Note I intend to send a patch to qemu to allow the virtqueue size to be configured from the qemu command line. Signed-off-by: Richard W.M. Jones <rjones@redhat.com> Acked-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/scsi_lib.c')
0 files changed, 0 insertions, 0 deletions