]> git.proxmox.com Git - mirror_qemu.git/commit - blockdev.c
blockdev: acquire AioContext in blockdev-snapshot-delete-internal-sync
authorStefan Hajnoczi <stefanha@redhat.com>
Wed, 19 Nov 2014 14:19:42 +0000 (14:19 +0000)
committerKevin Wolf <kwolf@redhat.com>
Wed, 10 Dec 2014 09:25:30 +0000 (10:25 +0100)
commit4ef3982a99f9d2634588b4785c8d841605517946
treefd5c7e0acef64bef0cbc2bd3154de8b72b83d7fd
parent2389eeae690b68e9d6a17cb10a5a7c7ec58009a1
blockdev: acquire AioContext in blockdev-snapshot-delete-internal-sync

Add dataplane support to the blockdev-snapshot-delete-internal-sync QMP
command.  By acquiring the AioContext we avoid race conditions with the
dataplane thread which may also be accessing the BlockDriverState.

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>
blockdev.c
hw/block/dataplane/virtio-blk.c