diff options
| author | Emanuele Giuseppe Esposito <eesposit@redhat.com> | 2022-11-28 09:23:30 -0500 |
|---|---|---|
| committer | Kevin Wolf <kwolf@redhat.com> | 2022-12-15 16:07:43 +0100 |
| commit | 84bdf21f97e670d61615d44a95d2f33b41f849b1 (patch) | |
| tree | 708d075f8da80e89c9bbec43b950922c60ca0fff /scripts/block-coroutine-wrapper.py | |
| parent | a212e675cde67fb783b7f8e5b31dd02e9c880f58 (diff) | |
| download | focaccia-qemu-84bdf21f97e670d61615d44a95d2f33b41f849b1.tar.gz focaccia-qemu-84bdf21f97e670d61615d44a95d2f33b41f849b1.zip | |
block: distinguish between bdrv_create running in coroutine and not
Call two different functions depending on whether bdrv_create is in coroutine or not, following the same pattern as generated_co_wrapper functions. This allows to also call the coroutine function directly, without using CreateCo or relying in bdrv_create(). Signed-off-by: Emanuele Giuseppe Esposito <eesposit@redhat.com> Reviewed-by: Kevin Wolf <kwolf@redhat.com> Reviewed-by: Vladimir Sementsov-Ogievskiy <vsementsov@yandex-team.ru> Message-Id: <20221128142337.657646-8-eesposit@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'scripts/block-coroutine-wrapper.py')
0 files changed, 0 insertions, 0 deletions