summaryrefslogtreecommitdiffstats
path: root/hw/scsi
diff options
context:
space:
mode:
authorFam Zheng2017-03-17 07:14:46 +0100
committerPaolo Bonzini2017-03-24 11:48:58 +0100
commit3d69f821616a578aeed569b3b56e157922819602 (patch)
tree968bc3f06efe266aeb350d49db04a18bffe52961 /hw/scsi
parentclear pending status before calling memory commit (diff)
downloadqemu-3d69f821616a578aeed569b3b56e157922819602.tar.gz
qemu-3d69f821616a578aeed569b3b56e157922819602.tar.xz
qemu-3d69f821616a578aeed569b3b56e157922819602.zip
virtio-scsi: Make virtio_scsi_acquire/release public
They will be used in virtio-scsi-dataplane.c as well, so move them to header. Signed-off-by: Fam Zheng <famz@redhat.com> Message-Id: <20170317061447.16243-2-famz@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'hw/scsi')
-rw-r--r--hw/scsi/virtio-scsi.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/hw/scsi/virtio-scsi.c b/hw/scsi/virtio-scsi.c
index 1dbc4bced9..e7466d3854 100644
--- a/hw/scsi/virtio-scsi.c
+++ b/hw/scsi/virtio-scsi.c
@@ -422,20 +422,6 @@ static void virtio_scsi_handle_ctrl_req(VirtIOSCSI *s, VirtIOSCSIReq *req)
}
}
-static inline void virtio_scsi_acquire(VirtIOSCSI *s)
-{
- if (s->ctx) {
- aio_context_acquire(s->ctx);
- }
-}
-
-static inline void virtio_scsi_release(VirtIOSCSI *s)
-{
- if (s->ctx) {
- aio_context_release(s->ctx);
- }
-}
-
bool virtio_scsi_handle_ctrl_vq(VirtIOSCSI *s, VirtQueue *vq)
{
VirtIOSCSIReq *req;