diff options
| author | Fam Zheng | 2017-04-10 14:16:18 +0200 |
|---|---|---|
| committer | Fam Zheng | 2017-04-11 14:07:15 +0200 |
| commit | 324ec3e4f26e0a2a422478db4b9992f8aad3bde4 (patch) | |
| tree | d5afe9c6606b3f8dca60b28a61f51d3cafa1ee6e /include/exec | |
| parent | blockjob: Use bdrv_coroutine_enter to start coroutine (diff) | |
| download | qemu-324ec3e4f26e0a2a422478db4b9992f8aad3bde4.tar.gz qemu-324ec3e4f26e0a2a422478db4b9992f8aad3bde4.tar.xz qemu-324ec3e4f26e0a2a422478db4b9992f8aad3bde4.zip | |
qemu-io-cmds: Use bdrv_coroutine_enter
qemu_coroutine_create associates @co to qemu_aio_context but we poll
blk's context below. If the coroutine yields, it may never get resumed
again.
Use bdrv_coroutine_enter to make sure we are starting the I/O on the
right context.
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 'include/exec')
0 files changed, 0 insertions, 0 deletions
