]> git.proxmox.com Git - mirror_qemu.git/commit - blockjob.c
blockjob: Use bdrv_coroutine_enter to start coroutine
authorFam Zheng <famz@redhat.com>
Mon, 10 Apr 2017 12:12:05 +0000 (20:12 +0800)
committerFam Zheng <famz@redhat.com>
Tue, 11 Apr 2017 12:07:15 +0000 (20:07 +0800)
commitaef4278c5a835c555ffe065f9e480190fd076675
treea09dc04998de736f6800c1d41e5ee78d75f3374e
parent052a75721fb38b9aa0e71ea6420b462c0e356e74
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>
blockjob.c