projects
/
sdk
/
emulator
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1880ad4
)
virtio-scsi: Call bdrv_io_plug/bdrv_io_unplug in cmd request handling
author
Fam Zheng
<famz@redhat.com>
Tue, 23 Sep 2014 07:49:29 +0000
(15:49 +0800)
committer
Paolo Bonzini
<pbonzini@redhat.com>
Tue, 30 Sep 2014 09:11:20 +0000
(11:11 +0200)
Signed-off-by: Fam Zheng <famz@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
hw/scsi/virtio-scsi.c
patch
|
blob
|
history
diff --git
a/hw/scsi/virtio-scsi.c
b/hw/scsi/virtio-scsi.c
index
395178e
..
09a39cb
100644
(file)
--- a/
hw/scsi/virtio-scsi.c
+++ b/
hw/scsi/virtio-scsi.c
@@
-488,6
+488,8
@@
bool virtio_scsi_handle_cmd_req_prepare(VirtIOSCSI *s, VirtIOSCSIReq *req)
virtio_scsi_complete_cmd_req(req);
return false;
}
+ scsi_req_ref(req->sreq);
+ bdrv_io_plug(d->conf.bs);
return true;
}
@@
-496,6
+498,8
@@
void virtio_scsi_handle_cmd_req_submit(VirtIOSCSI *s, VirtIOSCSIReq *req)
if (scsi_req_enqueue(req->sreq)) {
scsi_req_continue(req->sreq);
}
+ bdrv_io_unplug(req->sreq->dev->conf.bs);
+ scsi_req_unref(req->sreq);
}
static void virtio_scsi_handle_cmd(VirtIODevice *vdev, VirtQueue *vq)