diff options
author | Fam Zheng <famz@redhat.com> | 2017-04-10 20:09:25 +0800 |
---|---|---|
committer | Fam Zheng <famz@redhat.com> | 2017-04-11 20:07:15 +0800 |
commit | 052a75721fb38b9aa0e71ea6420b462c0e356e74 (patch) | |
tree | 4003ab2c3f838c5a29c161c5bb28723630d3e8aa /include | |
parent | 8865852e00557925f60eb6e26d797833422ee86d (diff) | |
download | qemu-052a75721fb38b9aa0e71ea6420b462c0e356e74.zip qemu-052a75721fb38b9aa0e71ea6420b462c0e356e74.tar.gz qemu-052a75721fb38b9aa0e71ea6420b462c0e356e74.tar.bz2 |
block: Introduce bdrv_coroutine_enter
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')
-rw-r--r-- | include/block/block.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/block/block.h b/include/block/block.h index 488a07e..97d4330 100644 --- a/include/block/block.h +++ b/include/block/block.h @@ -558,6 +558,11 @@ bool bdrv_debug_is_suspended(BlockDriverState *bs, const char *tag); AioContext *bdrv_get_aio_context(BlockDriverState *bs); /** + * Transfer control to @co in the aio context of @bs + */ +void bdrv_coroutine_enter(BlockDriverState *bs, Coroutine *co); + +/** * bdrv_set_aio_context: * * Changes the #AioContext used for fd handlers, timers, and BHs by this |