summaryrefslogtreecommitdiffstats
path: root/qemu-options.hx
diff options
context:
space:
mode:
authorStefan Hajnoczi2014-08-18 17:07:12 +0200
committerStefan Hajnoczi2014-08-29 17:01:10 +0200
commit8ad4202bf61bc1d124ff26016cfe17cb261cc392 (patch)
tree3a3a924610494044c38c8aa3fd5289501671ab9b /qemu-options.hx
parentlinux-aio: avoid deadlock in nested aio_poll() calls (diff)
downloadqemu-8ad4202bf61bc1d124ff26016cfe17cb261cc392.tar.gz
qemu-8ad4202bf61bc1d124ff26016cfe17cb261cc392.tar.xz
qemu-8ad4202bf61bc1d124ff26016cfe17cb261cc392.zip
block: acquire AioContext in do_drive_del()
Make drive_del safe for dataplane where another thread may be running the BlockDriverState's AioContext. Note the assumption that AioContext's lifetime exceeds DriveInfo and BlockDriverState. We release AioContext after DriveInfo and BlockDriverState are potentially freed. This is clearly safe with the global AioContext but also with -object iothread and implicit iothreads created by -device virtio-blk-pci,x-data-plane=on (their lifetime is tied to DeviceState, not BlockDriverState). Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'qemu-options.hx')
0 files changed, 0 insertions, 0 deletions