qemu/hw/block/dataplane
Stefan Hajnoczi e3442099a2 blockdev: acquire AioContext in eject, change, and block_passwd
By acquiring the AioContext we avoid race conditions with the dataplane
thread which may also be accessing the BlockDriverState.

Fix up eject, change, and block_passwd in a single patch because
qmp_eject() and qmp_change_blockdev() both call eject_device().  Also
fix block_passwd while we're tackling a command that takes a block
encryption password.

Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Max Reitz <mreitz@redhat.com>
Signed-off-by: Max Reitz <mreitz@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
2014-12-10 10:25:30 +01:00
..
Makefile.objs dataplane: delete IOQueue since it is no longer used 2014-06-04 09:56:12 +02:00
virtio-blk.c blockdev: acquire AioContext in eject, change, and block_passwd 2014-12-10 10:25:30 +01:00
virtio-blk.h virtio-blk: Rename VirtIOBlkConf variables to conf 2014-10-20 14:02:21 +02:00