diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2022-09-22 10:49:06 +0200 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2022-10-07 12:11:40 +0200 |
commit | dda56b759734b5f3f4c162f8d5822b8b2a9a60f9 (patch) | |
tree | 5a146dbe51d267fe278117567acf0b928414ffe0 /block/file-posix.c | |
parent | 617b4b17fbddb31742bb9a854e6acdbee65c4fc0 (diff) |
file-posix: add missing coroutine_fn annotations
Callers of coroutine_fn must be coroutine_fn themselves, or the call
must be within "if (qemu_in_coroutine())". Apply coroutine_fn to
functions where this holds.
Reviewed-by: Alberto Faria <afaria@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Message-Id: <20220922084924.201610-9-pbonzini@redhat.com>
Reviewed-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'block/file-posix.c')
-rw-r--r-- | block/file-posix.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/block/file-posix.c b/block/file-posix.c index 66fdb07820..ad3021938b 100644 --- a/block/file-posix.c +++ b/block/file-posix.c @@ -2180,7 +2180,7 @@ static void raw_aio_unplug(BlockDriverState *bs) #endif } -static int raw_co_flush_to_disk(BlockDriverState *bs) +static int coroutine_fn raw_co_flush_to_disk(BlockDriverState *bs) { BDRVRawState *s = bs->opaque; RawPosixAIOData acb; |