[PATCH v2 04/10] block: Temporarily mark bdrv_co_get_allocated_file_size as mixed

Fabiano Rosas posted 10 patches 2 years, 1 month ago
[PATCH v2 04/10] block: Temporarily mark bdrv_co_get_allocated_file_size as mixed
Posted by Fabiano Rosas 2 years, 1 month ago
Some callers of this function are about to be converted to run in
coroutines, so allow it to be executed both inside and outside a
coroutine while we convert all the callers.

This will be reverted once all callers of bdrv_do_query_node_info run
in a coroutine.

Signed-off-by: Fabiano Rosas <farosas@suse.de>
Reviewed-by: Eric Blake <eblake@redhat.com>
---
 include/block/block-io.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/block/block-io.h b/include/block/block-io.h
index 43af816d75..f31e25cf56 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
Re: [PATCH v2 04/10] block: Temporarily mark bdrv_co_get_allocated_file_size as mixed
Posted by Hanna Czenczek 1 year, 8 months ago
On 09.06.23 22:19, Fabiano Rosas wrote:
> Some callers of this function are about to be converted to run in
> coroutines, so allow it to be executed both inside and outside a
> coroutine while we convert all the callers.
>
> This will be reverted once all callers of bdrv_do_query_node_info run
> in a coroutine.
>
> Signed-off-by: Fabiano Rosas <farosas@suse.de>
> Reviewed-by: Eric Blake <eblake@redhat.com>
> ---
>   include/block/block-io.h | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)

Reviewed-by: Hanna Czenczek <hreitz@redhat.com>