]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: virtio_scsi: implement request batching
authorPaolo Bonzini <pbonzini@redhat.com>
Thu, 30 May 2019 11:28:11 +0000 (13:28 +0200)
committerMartin K. Petersen <martin.petersen@oracle.com>
Mon, 22 Jul 2019 20:44:07 +0000 (16:44 -0400)
commit9954dc5aaabeadd2b42ac855afe655c1511f6e55
tree9cbca4e9d938b301a778d2bf5349ac68d10a5fc4
parent5c3ef113397d0218dcd33f604ca0ec44a2bbd398
scsi: virtio_scsi: implement request batching

Adding the command and kicking the virtqueue so far was done one after
another.  Make the kick optional, so that we can take into account
SCMD_LAST.  We also need a commit_rqs callback to kick the device if
blk-mq aborts the submission before the last request is reached.

Suggested-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Hannes Reinecke <hare@suse.com>
Reviewed-by: Ming Lei <ming.lei@redhat.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/virtio_scsi.c