diff options
author | Kevin Wolf <kwolf@redhat.com> | 2017-06-12 11:12:41 +0200 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2017-06-26 14:51:15 +0200 |
commit | 87f0d88261d120e428cd23305775026556e6cce6 (patch) | |
tree | d1e5ba69edaacf5f22b593a4bc0fe3234c91485e /block/qed.h | |
parent | c0e8f98927929b65ffbfb320b7a1c79e0e620006 (diff) |
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 <kwolf@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'block/qed.h')
-rw-r--r-- | block/qed.h | 5 |
1 files changed, 3 insertions, 2 deletions
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 |