You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
qemu/hw/scsi
Stefan Hajnoczi fc4e394b28 block: remove unused BLOCK_OP_TYPE_DATAPLANE
BLOCK_OP_TYPE_DATAPLANE prevents BlockDriverState from being used by
virtio-blk/virtio-scsi with IOThread. Commit b112a65c52 ("block:
declare blockjobs and dataplane friends!") eliminated the main reason
for this blocker in 2014.

Nowadays the block layer supports I/O from multiple AioContexts, so
there is even less reason to block IOThread users. Any legitimate
reasons related to interference would probably also apply to
non-IOThread users.

The only remaining users are bdrv_op_unblock(BLOCK_OP_TYPE_DATAPLANE)
calls after bdrv_op_block_all(). If we remove BLOCK_OP_TYPE_DATAPLANE
their behavior doesn't change.

Existing bdrv_op_block_all() callers that don't explicitly unblock
BLOCK_OP_TYPE_DATAPLANE seem to do so simply because no one bothered to
rather than because it is necessary to keep BLOCK_OP_TYPE_DATAPLANE
blocked.

Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Message-ID: <20250203182529.269066-1-stefanha@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
2 weeks ago
..
Kconfig hw/scsi: Introduce VHOST_SCSI_COMMON symbol in Kconfig 2 years ago
emulation.c scsi-generic: avoid invalid access to struct when emulating block limits 6 years ago
esp-pci.c hw: Use device_class_set_legacy_reset() instead of opencoding 5 months ago
esp.c hw: Use device_class_set_legacy_reset() instead of opencoding 5 months ago
lsi53c895a.c include: Rename sysemu/ -> system/ 2 months ago
megasas.c Accel & Exec patch queue 2 months ago
meson.build hw/virtio: Build various target-agnostic objects just once 2 years ago
mfi.h hw/other: spelling fixes 1 year ago
mpi.h
mptconfig.c nomaintainer: Fix Lesser GPL version number 4 years ago
mptendian.c include: Rename sysemu/ -> system/ 2 months ago
mptsas.c Accel & Exec patch queue 2 months ago
mptsas.h include/hw/pci: Split pci_device.h off pci.h 2 years ago
scsi-bus.c Accel & Exec patch queue 2 months ago
scsi-disk.c Accel & Exec patch queue 2 months ago
scsi-generic.c Accel & Exec patch queue 2 months ago
spapr_vscsi.c include/hw/qdev-properties: Remove DEFINE_PROP_END_OF_LIST 2 months ago
srp.h
trace-events hw/scsi/lsi53c895a: add timer to scripts processing 12 months ago
trace.h trace: switch position of headers to what Meson requires 5 years ago
vhost-scsi-common.c vhost-user-scsi: support reconnect to backend 1 year ago
vhost-scsi.c Accel & Exec patch queue 2 months ago
vhost-user-scsi.c Accel & Exec patch queue 2 months ago
viosrp.h Updated the FSF address to <https://www.gnu.org/licenses/> 2 years ago
virtio-scsi-dataplane.c include: Rename sysemu/ -> system/ 2 months ago
virtio-scsi.c block: remove unused BLOCK_OP_TYPE_DATAPLANE 2 weeks ago
vmw_pvscsi.c include/hw/qdev-properties: Remove DEFINE_PROP_END_OF_LIST 2 months ago
vmw_pvscsi.h