a575c5e346
Fix virtio-scsi hang (bz #2079347) Add dep on virtio-gpu-ccw (bz #2091964)
55 lines
2.0 KiB
Diff
55 lines
2.0 KiB
Diff
From: Stefan Hajnoczi <stefanha@redhat.com>
|
|
Date: Tue, 17 May 2022 09:28:12 +0100
|
|
Subject: [PATCH] virtio-scsi: clean up virtio_scsi_handle_ctrl_vq()
|
|
Content-type: text/plain
|
|
|
|
virtio_scsi_handle_ctrl_vq() is only called from hw/scsi/virtio-scsi.c
|
|
now and its return value is no longer used. Remove the function
|
|
prototype from virtio-scsi.h and drop the return value.
|
|
|
|
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
|
|
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
|
|
Message-id: 20220427143541.119567-5-stefanha@redhat.com
|
|
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
|
|
(cherry picked from commit 73b3b49f1880f236b4d0ffd7efb00280c05a5fab)
|
|
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
|
|
---
|
|
hw/scsi/virtio-scsi.c | 5 +----
|
|
include/hw/virtio/virtio-scsi.h | 1 -
|
|
2 files changed, 1 insertion(+), 5 deletions(-)
|
|
|
|
diff --git a/hw/scsi/virtio-scsi.c b/hw/scsi/virtio-scsi.c
|
|
index aa03a713d8..eefda16e4b 100644
|
|
--- a/hw/scsi/virtio-scsi.c
|
|
+++ b/hw/scsi/virtio-scsi.c
|
|
@@ -460,16 +460,13 @@ static void virtio_scsi_handle_ctrl_req(VirtIOSCSI *s, VirtIOSCSIReq *req)
|
|
}
|
|
}
|
|
|
|
-bool virtio_scsi_handle_ctrl_vq(VirtIOSCSI *s, VirtQueue *vq)
|
|
+static void virtio_scsi_handle_ctrl_vq(VirtIOSCSI *s, VirtQueue *vq)
|
|
{
|
|
VirtIOSCSIReq *req;
|
|
- bool progress = false;
|
|
|
|
while ((req = virtio_scsi_pop_req(s, vq))) {
|
|
- progress = true;
|
|
virtio_scsi_handle_ctrl_req(s, req);
|
|
}
|
|
- return progress;
|
|
}
|
|
|
|
/*
|
|
diff --git a/include/hw/virtio/virtio-scsi.h b/include/hw/virtio/virtio-scsi.h
|
|
index 5957597825..44dc3b81ec 100644
|
|
--- a/include/hw/virtio/virtio-scsi.h
|
|
+++ b/include/hw/virtio/virtio-scsi.h
|
|
@@ -152,7 +152,6 @@ void virtio_scsi_common_realize(DeviceState *dev,
|
|
|
|
void virtio_scsi_common_unrealize(DeviceState *dev);
|
|
bool virtio_scsi_handle_cmd_vq(VirtIOSCSI *s, VirtQueue *vq);
|
|
-bool virtio_scsi_handle_ctrl_vq(VirtIOSCSI *s, VirtQueue *vq);
|
|
void virtio_scsi_init_req(VirtIOSCSI *s, VirtQueue *vq, VirtIOSCSIReq *req);
|
|
void virtio_scsi_free_req(VirtIOSCSIReq *req);
|
|
void virtio_scsi_push_event(VirtIOSCSI *s, SCSIDevice *dev,
|