@samitouri / QOSamiQemu / commits / a6c131217d

block: add missing coroutine annotation

The function was extracted without carrying the annotation. Fixes: 23743ab282af ("block: move commit_run loop to separate function") Reviewed-by: Philippe Mathieu-Daudé <philmd@oss.qualcomm.com> Reviewed-by: Kevin Wolf <kwolf@redhat.com> Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>

Marc-André Lureau committed Jul 19, 2026 at 23:50 UTC a6c131217dd63b420e73175f14bbeb9a7260ebd4
1 file changed +3 -2
block/commit.c
+3 -2
@@ -128,8 +128,9 @@ static void commit_clean(Job *job)
128 blk_unref(s->top);
129 }
130
131 -static int commit_iteration(CommitBlockJob *s, int64_t offset,
132 - int64_t *requested_bytes, void *buf)
131 +static int coroutine_fn
132 +commit_iteration(CommitBlockJob *s, int64_t offset,
133 + int64_t *requested_bytes, void *buf)
134 {
135 BlockErrorAction action;
136 int64_t bytes = *requested_bytes;