[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [RFC PATCH 2/6] block: Mark bdrv_co_get_allocated_file_size() as mix
From: |
Eric Blake |
Subject: |
Re: [RFC PATCH 2/6] block: Mark bdrv_co_get_allocated_file_size() as mixed |
Date: |
Thu, 25 May 2023 09:17:39 -0500 |
User-agent: |
NeoMutt/20230517 |
On Tue, May 23, 2023 at 06:38:59PM -0300, Fabiano Rosas wrote:
> Some callers of this function are about to be converted to use
> coroutines, so allow it to be executed both inside and outside a
> coroutine.
>
> Signed-off-by: Fabiano Rosas <farosas@suse.de>
> ---
> include/block/block-io.h | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
Reviewed-by: Eric Blake <eblake@redhat.com>
>
> diff --git a/include/block/block-io.h b/include/block/block-io.h
> index a27e471a87..c1f96faca5 100644
> --- a/include/block/block-io.h
> +++ b/include/block/block-io.h
> @@ -87,7 +87,7 @@ int64_t co_wrapper_mixed_bdrv_rdlock
> bdrv_getlength(BlockDriverState *bs);
> int64_t coroutine_fn GRAPH_RDLOCK
> bdrv_co_get_allocated_file_size(BlockDriverState *bs);
>
> -int64_t co_wrapper_bdrv_rdlock
> +int64_t co_wrapper_mixed_bdrv_rdlock
> bdrv_get_allocated_file_size(BlockDriverState *bs);
>
> BlockMeasureInfo *bdrv_measure(BlockDriver *drv, QemuOpts *opts,
> --
> 2.35.3
>
--
Eric Blake, Principal Software Engineer
Red Hat, Inc. +1-919-301-3266
Virtualization: qemu.org | libvirt.org