summaryrefslogtreecommitdiffstats
path: root/qemu-io-cmds.c
diff options
context:
space:
mode:
authorFam Zheng2017-04-10 14:12:05 +0200
committerFam Zheng2017-04-11 14:07:15 +0200
commitaef4278c5a835c555ffe065f9e480190fd076675 (patch)
treea09dc04998de736f6800c1d41e5ee78d75f3374e /qemu-io-cmds.c
parentblock: Introduce bdrv_coroutine_enter (diff)
downloadqemu-aef4278c5a835c555ffe065f9e480190fd076675.tar.gz
qemu-aef4278c5a835c555ffe065f9e480190fd076675.tar.xz
qemu-aef4278c5a835c555ffe065f9e480190fd076675.zip
blockjob: Use bdrv_coroutine_enter to start coroutine
Resuming and especially starting of the block job coroutine, could be issued in the main thread. However the coroutine's "home" ctx should be set to the same context as job->blk. Use bdrv_coroutine_enter to ensure that. Signed-off-by: Fam Zheng <famz@redhat.com> Acked-by: Stefan Hajnoczi <stefanha@redhat.com> Reviewed-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'qemu-io-cmds.c')
0 files changed, 0 insertions, 0 deletions