qemu-e2k/include
Stefan Hajnoczi ed18b1ed4f virtio-scsi: replace AioContext lock with tmf_bh_lock
Protect the Task Management Function BH state with a lock. The TMF BH
runs in the main loop thread. An IOThread might process a TMF at the
same time as the TMF BH is running. Therefore tmf_bh_list and tmf_bh
must be protected by a lock.

Run TMF request completion in the IOThread using aio_wait_bh_oneshot().
This avoids more locking to protect the virtqueue and SCSI layer state.

Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Kevin Wolf <kwolf@redhat.com>
Message-ID: <20231205182011.1976568-2-stefanha@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
2023-12-21 22:49:27 +01:00
..
authz
block block: Fix deadlocks in bdrv_graph_wrunlock() 2023-11-21 12:45:21 +01:00
chardev
crypto
disas
exec memory: Remove "qemu:" prefix from the "qemu:ram-discard-manager" type name 2023-12-20 10:29:23 +01:00
fpu
gdbstub
hw virtio-scsi: replace AioContext lock with tmf_bh_lock 2023-12-21 22:49:27 +01:00
io
libdecnumber
migration
monitor
net net: Update MemReentrancyGuard for NIC 2023-11-21 15:42:34 +08:00
qapi
qemu util/char_dev: Add open_cdev() 2023-12-19 19:03:38 +01:00
qom qom: Add object_property_set_default_list() 2023-11-10 18:19:14 +01:00
scsi
semihosting
standard-headers
sysemu * Add compat machines for QEMU 9.0 2023-12-20 09:40:16 -05:00
tcg
ui ui/pixman-minimal.h: fix empty allocation 2023-11-21 14:38:14 +04:00
user
elf.h
glib-compat.h
qemu-io.h
qemu-main.h