Re: [PATCH 01/20] qcow2: Don't call bdrv_getlength() in coroutine_fns

2023-05-01 Thread Stefan Hajnoczi
On Tue, Apr 25, 2023 at 07:31:39PM +0200, Kevin Wolf wrote: > There is a bdrv_co_getlength() now, which should be used in coroutine > context. > > Signed-off-by: Kevin Wolf > --- > block/qcow2.h | 4 +++- > block/qcow2-refcount.c | 2 +- > block/qcow2.c | 19 +

Re: [PATCH 01/20] qcow2: Don't call bdrv_getlength() in coroutine_fns

2023-04-27 Thread Eric Blake
On Thu, Apr 27, 2023 at 01:12:43PM +0200, Kevin Wolf wrote: > Am 25.04.2023 um 20:37 hat Eric Blake geschrieben: > > On Tue, Apr 25, 2023 at 07:31:39PM +0200, Kevin Wolf wrote: > > > There is a bdrv_co_getlength() now, which should be used in coroutine > > > context. > > > > > > Signed-off-by: Kev

Re: [PATCH 01/20] qcow2: Don't call bdrv_getlength() in coroutine_fns

2023-04-27 Thread Kevin Wolf
Am 25.04.2023 um 20:37 hat Eric Blake geschrieben: > On Tue, Apr 25, 2023 at 07:31:39PM +0200, Kevin Wolf wrote: > > There is a bdrv_co_getlength() now, which should be used in coroutine > > context. > > > > Signed-off-by: Kevin Wolf > > --- > > block/qcow2.h | 4 +++- > > block/qcow2-

Re: [PATCH 01/20] qcow2: Don't call bdrv_getlength() in coroutine_fns

2023-04-25 Thread Eric Blake
On Tue, Apr 25, 2023 at 07:31:39PM +0200, Kevin Wolf wrote: > There is a bdrv_co_getlength() now, which should be used in coroutine > context. > > Signed-off-by: Kevin Wolf > --- > block/qcow2.h | 4 +++- > block/qcow2-refcount.c | 2 +- > block/qcow2.c | 19 +

[PATCH 01/20] qcow2: Don't call bdrv_getlength() in coroutine_fns

2023-04-25 Thread Kevin Wolf
There is a bdrv_co_getlength() now, which should be used in coroutine context. Signed-off-by: Kevin Wolf --- block/qcow2.h | 4 +++- block/qcow2-refcount.c | 2 +- block/qcow2.c | 19 +-- 3 files changed, 13 insertions(+), 12 deletions(-) diff --git a/block/q