mbox series

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

Message ID 20230904100306.156197-1-pbonzini@redhat.com
Headers show
Series block: clean up coroutine versions of bdrv_{is_allocated, block_status}* | expand

Message

Paolo Bonzini Sept. 4, 2023, 10:03 a.m. UTC
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.

v2->v3: cleaned up formatting

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                | 98 +++++++++++----------------------------
 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  | 29 +++++++-----
 9 files changed, 74 insertions(+), 112 deletions(-)

Comments

Paolo Bonzini Sept. 26, 2023, 3:31 p.m. UTC | #1
On Mon, Sep 4, 2023 at 12:03 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.
>
> v2->v3: cleaned up formatting

Ping.

Paolo
Kevin Wolf Oct. 6, 2023, 3:58 p.m. UTC | #2
Am 04.09.2023 um 12:03 hat Paolo Bonzini geschrieben:
> 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.
> 
> v2->v3: cleaned up formatting

Thanks, applied to the block branch.

Kevin