qemu-e2k/include
Stefan Hajnoczi 3edf660a91 aio-wait: avoid AioContext lock in aio_wait_bh_oneshot()
There is no need for the AioContext lock in aio_wait_bh_oneshot().
It's easy to remove the lock from existing callers and then switch from
AIO_WAIT_WHILE() to AIO_WAIT_WHILE_UNLOCKED() in aio_wait_bh_oneshot().

Document that the AioContext lock should not be held across
aio_wait_bh_oneshot(). Holding a lock across aio_poll() can cause
deadlock so we don't want callers to do that.

This is a step towards getting rid of the AioContext lock.

Cc: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Message-Id: <20230404153307.458883-1-stefanha@redhat.com>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Emanuele Giuseppe Esposito <eesposit@redhat.com>
Reviewed-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
2023-05-10 14:15:13 +02:00
..
authz
block aio-wait: avoid AioContext lock in aio_wait_bh_oneshot() 2023-05-10 14:15:13 +02:00
chardev
crypto
disas
exec accel/tcg: Add cpu_ld*_code_mmu 2023-05-02 13:05:45 -07:00
fpu
gdbstub
hw hw/riscv: Add signature dump function for spike to run ACT tests 2023-05-05 10:49:50 +10:00
io io: mark mixed functions that can suspend 2023-04-20 11:17:35 +02:00
libdecnumber
migration migration: move migration_global_dump() to migration-hmp-cmds.c 2023-04-24 15:01:46 +02:00
monitor hmp: Add 'one-insn-per-tb' command equivalent to 'singlestep' 2023-05-02 15:47:40 +01:00
net
qapi monitor: mark mixed functions that can suspend 2023-04-20 11:17:35 +02:00
qemu include/qemu/osdep.h: Bump _WIN32_WINNT to the Windows 8 API 2023-05-08 16:35:30 +02:00
qom
scsi
semihosting
standard-headers Update linux headers to v6.3rc5 2023-04-28 15:55:55 +02:00
sysemu linux-aio: use LinuxAioState from the running thread 2023-04-25 13:17:28 +02:00
tcg tcg: Widen helper_*_st[bw]_mmu val arguments 2023-05-05 17:21:03 +01:00
ui
user
elf.h
glib-compat.h
qemu-io.h
qemu-main.h