diff options
author | Alberto Faria <afaria@redhat.com> | 2022-06-09 16:27:43 +0100 |
---|---|---|
committer | Hanna Reitz <hreitz@redhat.com> | 2022-07-12 12:14:56 +0200 |
commit | a8f0e83cefa245dbaff8001c076e194ff54e8d1f (patch) | |
tree | 661c910016a435aa8f5d4304b8a87be2505dee54 /block/parallels.c | |
parent | e97190a4057d42dce0322a23e6347101225ee39e (diff) | |
download | qemu-a8f0e83cefa245dbaff8001c076e194ff54e8d1f.zip qemu-a8f0e83cefa245dbaff8001c076e194ff54e8d1f.tar.gz qemu-a8f0e83cefa245dbaff8001c076e194ff54e8d1f.tar.bz2 |
block: Use bdrv_co_pwrite_sync() when caller is coroutine_fn
Convert uses of bdrv_pwrite_sync() into bdrv_co_pwrite_sync() when the
callers are already coroutine_fn.
Signed-off-by: Alberto Faria <afaria@redhat.com>
Reviewed-by: Vladimir Sementsov-Ogievskiy <v.sementsov-og@mail.ru>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Message-Id: <20220609152744.3891847-10-afaria@redhat.com>
Reviewed-by: Hanna Reitz <hreitz@redhat.com>
Signed-off-by: Hanna Reitz <hreitz@redhat.com>
Diffstat (limited to 'block/parallels.c')
-rw-r--r-- | block/parallels.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/block/parallels.c b/block/parallels.c index f22444e..8b23b95 100644 --- a/block/parallels.c +++ b/block/parallels.c @@ -481,7 +481,7 @@ static int coroutine_fn parallels_co_check(BlockDriverState *bs, ret = 0; if (flush_bat) { - ret = bdrv_pwrite_sync(bs->file, 0, s->header_size, s->header, 0); + ret = bdrv_co_pwrite_sync(bs->file, 0, s->header_size, s->header, 0); if (ret < 0) { res->check_errors++; goto out; |