diff options
author | Stefan Hajnoczi <stefanha@redhat.com> | 2014-10-21 12:03:57 +0100 |
---|---|---|
committer | Stefan Hajnoczi <stefanha@redhat.com> | 2014-11-03 11:41:49 +0000 |
commit | f3e69beb942103ccd5248273e4d95e76b64ab64c (patch) | |
tree | 5d968e2229f8ab8785a7814a8f2bf488a1d4d79f /tci.c | |
parent | 761731b1805f6ef64eb615e5b82a0801db3cde78 (diff) | |
download | qemu-f3e69beb942103ccd5248273e4d95e76b64ab64c.zip qemu-f3e69beb942103ccd5248273e4d95e76b64ab64c.tar.gz qemu-f3e69beb942103ccd5248273e4d95e76b64ab64c.tar.bz2 |
block: let stream blockjob run in BDS AioContext
The stream block job must run in the BlockDriverState AioContext so that
it works with dataplane.
The basics of acquiring the AioContext are easy in blockdev.c.
The tricky part is the completion code which drops part of the backing
file chain. This must be done in the main loop where bdrv_unref() and
bdrv_close() are safe to call. Use block_job_defer_to_main_loop() to
achieve that.
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Max Reitz <mreitz@redhat.com>
Message-id: 1413889440-32577-9-git-send-email-stefanha@redhat.com
Diffstat (limited to 'tci.c')
0 files changed, 0 insertions, 0 deletions