|
|
586cba |
From 733acef2caea0758edd74fb634b095ce09bf5914 Mon Sep 17 00:00:00 2001
|
|
|
586cba |
From: Emanuele Giuseppe Esposito <eesposit@redhat.com>
|
|
|
586cba |
Date: Mon, 9 May 2022 03:46:23 -0400
|
|
|
586cba |
Subject: [PATCH 15/16] Revert "virtio-scsi: Reject scsi-cd if data plane
|
|
|
586cba |
enabled [RHEL only]"
|
|
|
586cba |
|
|
|
586cba |
RH-Author: Emanuele Giuseppe Esposito <eesposit@redhat.com>
|
|
|
586cba |
RH-MergeRequest: 91: Revert "virtio-scsi: Reject scsi-cd if data plane enabled [RHEL only]"
|
|
|
586cba |
RH-Commit: [1/1] 1af55d792bc9166e5c86272afe8093c76ab41bb4 (eesposit/qemu-kvm)
|
|
|
586cba |
RH-Bugzilla: 1995710
|
|
|
586cba |
RH-Acked-by: Kevin Wolf <kwolf@redhat.com>
|
|
|
586cba |
RH-Acked-by: Miroslav Rezanina <mrezanin@redhat.com>
|
|
|
586cba |
RH-Acked-by: Stefan Hajnoczi <stefanha@redhat.com>
|
|
|
586cba |
|
|
|
586cba |
This reverts commit 4e17b1126e.
|
|
|
586cba |
|
|
|
586cba |
Over time AioContext usage and coverage has increased, and now block
|
|
|
586cba |
backend is capable of handling AioContext change upon eject and insert.
|
|
|
586cba |
Therefore the above downstream-only commit is not necessary anymore,
|
|
|
586cba |
and can be safely reverted.
|
|
|
586cba |
|
|
|
586cba |
X-downstream-only: true
|
|
|
586cba |
|
|
|
586cba |
Signed-off-by: Emanuele Giuseppe Esposito <eesposit@redhat.com>
|
|
|
586cba |
---
|
|
|
586cba |
hw/scsi/virtio-scsi.c | 9 ---------
|
|
|
586cba |
1 file changed, 9 deletions(-)
|
|
|
586cba |
|
|
|
586cba |
diff --git a/hw/scsi/virtio-scsi.c b/hw/scsi/virtio-scsi.c
|
|
|
586cba |
index 2450c9438c..db54d104be 100644
|
|
|
586cba |
--- a/hw/scsi/virtio-scsi.c
|
|
|
586cba |
+++ b/hw/scsi/virtio-scsi.c
|
|
|
586cba |
@@ -937,15 +937,6 @@ static void virtio_scsi_hotplug(HotplugHandler *hotplug_dev, DeviceState *dev,
|
|
|
586cba |
AioContext *old_context;
|
|
|
586cba |
int ret;
|
|
|
586cba |
|
|
|
586cba |
- /* XXX: Remove this check once block backend is capable of handling
|
|
|
586cba |
- * AioContext change upon eject/insert.
|
|
|
586cba |
- * s->ctx is NULL if ioeventfd is off, s->ctx is qemu_get_aio_context() if
|
|
|
586cba |
- * data plane is not used, both cases are safe for scsi-cd. */
|
|
|
586cba |
- if (s->ctx && s->ctx != qemu_get_aio_context() &&
|
|
|
586cba |
- object_dynamic_cast(OBJECT(dev), "scsi-cd")) {
|
|
|
586cba |
- error_setg(errp, "scsi-cd is not supported by data plane");
|
|
|
586cba |
- return;
|
|
|
586cba |
- }
|
|
|
586cba |
if (s->ctx && !s->dataplane_fenced) {
|
|
|
586cba |
if (blk_op_is_blocked(sd->conf.blk, BLOCK_OP_TYPE_DATAPLANE, errp)) {
|
|
|
586cba |
return;
|
|
|
586cba |
--
|
|
|
586cba |
2.31.1
|
|
|
586cba |
|