diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2023-03-09 09:44:50 +0100 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2023-04-25 13:17:28 +0200 |
commit | 26bef102e32d93e1111c0194ff385fedde7a7111 (patch) | |
tree | 56106de7496ffeb5b58da2c19856dd72b7924da4 /block | |
parent | 2f1fabdf4414ee86786e4d11350ad5197f1c69d0 (diff) | |
download | qemu-26bef102e32d93e1111c0194ff385fedde7a7111.zip qemu-26bef102e32d93e1111c0194ff385fedde7a7111.tar.gz qemu-26bef102e32d93e1111c0194ff385fedde7a7111.tar.bz2 |
mirror: make mirror_flush a coroutine_fn, do not use co_wrappers
mirror_flush calls a mixed function blk_flush but it is only called
from mirror_run; so call the coroutine version and make mirror_flush
a coroutine_fn too.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Message-Id: <20230309084456.304669-4-pbonzini@redhat.com>
Reviewed-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'block')
-rw-r--r-- | block/mirror.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/block/mirror.c b/block/mirror.c index 663e2b7..af9bbd2 100644 --- a/block/mirror.c +++ b/block/mirror.c @@ -886,9 +886,9 @@ static int coroutine_fn mirror_dirty_init(MirrorBlockJob *s) /* Called when going out of the streaming phase to flush the bulk of the * data to the medium, or just before completing. */ -static int mirror_flush(MirrorBlockJob *s) +static int coroutine_fn mirror_flush(MirrorBlockJob *s) { - int ret = blk_flush(s->target); + int ret = blk_co_flush(s->target); if (ret < 0) { if (mirror_error_action(s, false, -ret) == BLOCK_ERROR_ACTION_REPORT) { s->ret = ret; |