diff options
author | Fam Zheng <famz@redhat.com> | 2017-04-10 20:12:05 +0800 |
---|---|---|
committer | Fam Zheng <famz@redhat.com> | 2017-04-11 20:07:15 +0800 |
commit | aef4278c5a835c555ffe065f9e480190fd076675 (patch) | |
tree | a09dc04998de736f6800c1d41e5ee78d75f3374e /block | |
parent | 052a75721fb38b9aa0e71ea6420b462c0e356e74 (diff) | |
download | qemu-aef4278c5a835c555ffe065f9e480190fd076675.zip qemu-aef4278c5a835c555ffe065f9e480190fd076675.tar.gz qemu-aef4278c5a835c555ffe065f9e480190fd076675.tar.bz2 |
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 'block')
0 files changed, 0 insertions, 0 deletions