OSDN Git Service

virtio-scsi: Batched prepare for cmd reqs
authorFam Zheng <famz@redhat.com>
Tue, 23 Sep 2014 07:49:28 +0000 (15:49 +0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 30 Sep 2014 09:11:20 +0000 (11:11 +0200)
commit1880ad4f4e3b49f15c55e816d66b9690b3ede00c
treef02488a1e153e469f00ac5c4527c0f6ba005d3cb
parent359eea71d98e7f2cf9efb5e65bb59a240bedb131
virtio-scsi: Batched prepare for cmd reqs

Queue the popped requests while calling
virtio_scsi_handle_cmd_req_prepare(), then submit them after all
prepared.

Signed-off-by: Fam Zheng <famz@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
hw/scsi/virtio-scsi-dataplane.c
hw/scsi/virtio-scsi.c
include/hw/virtio/virtio-scsi.h