[PATCH 0/4] block: clean up coroutine versions of bdrv_{is_allocated, block_status}*

Paolo Bonzini posted 4 patches 1 year, 1 month ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20230405103216.128103-1-pbonzini@redhat.com
Maintainers: John Snow <jsnow@redhat.com>, Vladimir Sementsov-Ogievskiy <vsementsov@yandex-team.ru>, Kevin Wolf <kwolf@redhat.com>, Hanna Reitz <hreitz@redhat.com>, Stefan Hajnoczi <stefanha@redhat.com>, Fam Zheng <fam@euphon.net>, Wen Congyang <wencongyang2@huawei.com>, Xie Changlong <xiechanglong.d@gmail.com>
There is a newer version of this series
block/copy-before-write.c |  2 +-
block/copy-on-read.c      |  8 ++--
block/io.c                | 87 +++++++++------------------------------
block/mirror.c            | 10 ++---
block/qcow2.c             |  5 ++-
block/replication.c       |  8 ++--
block/stream.c            |  8 ++--
block/vvfat.c             | 18 ++++----
include/block/block-io.h  | 30 +++++++++-----
9 files changed, 69 insertions(+), 107 deletions(-)
[PATCH 0/4] block: clean up coroutine versions of bdrv_{is_allocated, block_status}*
Posted by Paolo Bonzini 1 year, 1 month ago
Provide coroutine versions of bdrv_is_allocated* and bdrv_block_status*,
since the underlying BlockDriver API is coroutine-based, and use
automatically-generated wrappers for the "mixed" versions.

Paolo

Paolo Bonzini (4):
  block: rename the bdrv_co_block_status static function
  block: complete public block status API
  block: switch to co_wrapper for bdrv_is_allocated_*
  block: convert more bdrv_is_allocated* and bdrv_block_status* calls to
    coroutine versions

 block/copy-before-write.c |  2 +-
 block/copy-on-read.c      |  8 ++--
 block/io.c                | 87 +++++++++------------------------------
 block/mirror.c            | 10 ++---
 block/qcow2.c             |  5 ++-
 block/replication.c       |  8 ++--
 block/stream.c            |  8 ++--
 block/vvfat.c             | 18 ++++----
 include/block/block-io.h  | 30 +++++++++-----
 9 files changed, 69 insertions(+), 107 deletions(-)

-- 
2.39.2
Re: [PATCH 0/4] block: clean up coroutine versions of bdrv_{is_allocated, block_status}*
Posted by Paolo Bonzini 1 year ago
Ping.

Paolo

On Wed, Apr 5, 2023 at 12:32 PM Paolo Bonzini <pbonzini@redhat.com> wrote:
>
> Provide coroutine versions of bdrv_is_allocated* and bdrv_block_status*,
> since the underlying BlockDriver API is coroutine-based, and use
> automatically-generated wrappers for the "mixed" versions.
>
> Paolo
>
> Paolo Bonzini (4):
>   block: rename the bdrv_co_block_status static function
>   block: complete public block status API
>   block: switch to co_wrapper for bdrv_is_allocated_*
>   block: convert more bdrv_is_allocated* and bdrv_block_status* calls to
>     coroutine versions
>
>  block/copy-before-write.c |  2 +-
>  block/copy-on-read.c      |  8 ++--
>  block/io.c                | 87 +++++++++------------------------------
>  block/mirror.c            | 10 ++---
>  block/qcow2.c             |  5 ++-
>  block/replication.c       |  8 ++--
>  block/stream.c            |  8 ++--
>  block/vvfat.c             | 18 ++++----
>  include/block/block-io.h  | 30 +++++++++-----
>  9 files changed, 69 insertions(+), 107 deletions(-)
>
> --
> 2.39.2