From 87f0d88261d120e428cd23305775026556e6cce6 Mon Sep 17 00:00:00 2001 From: Kevin Wolf Date: Mon, 12 Jun 2017 11:12:41 +0200 Subject: qed: Add coroutine_fn to I/O path functions Now that we stay in coroutine context for the whole request when doing reads or writes, we can add coroutine_fn annotations to many functions that can do I/O or yield directly. Signed-off-by: Kevin Wolf Reviewed-by: Stefan Hajnoczi --- block/qed.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'block/qed.h') diff --git a/block/qed.h b/block/qed.h index fb80943c2d..dd3a2d5519 100644 --- a/block/qed.h +++ b/block/qed.h @@ -213,8 +213,9 @@ int qed_write_l2_table_sync(BDRVQEDState *s, QEDRequest *request, /** * Cluster functions */ -int qed_find_cluster(BDRVQEDState *s, QEDRequest *request, uint64_t pos, - size_t *len, uint64_t *img_offset); +int coroutine_fn qed_find_cluster(BDRVQEDState *s, QEDRequest *request, + uint64_t pos, size_t *len, + uint64_t *img_offset); /** * Consistency check -- cgit v1.2.1