On Wed, Apr 12, 2023 at 01:26:06PM +0200, Paolo Bonzini wrote: > Since the former nfs_get_allocated_file_size is now a coroutine > function, it must suspend rather than poll. Switch BDRV_POLL_WHILE() > to a qemu_coroutine_yield() loop and schedule nfs_co_generic_bh_cb() > in place of the call to bdrv_wakeup(). > > Fixes: 82618d7bc341 ("block: Convert bdrv_get_allocated_file_size() to > co_wrapper", 2023-02-01) > Signed-off-by: Paolo Bonzini <pbonz...@redhat.com> > --- > block/nfs.c | 24 +++++++++++++----------- > 1 file changed, 13 insertions(+), 11 deletions(-)
Reviewed-by: Eric Blake <ebl...@redhat.com> -- Eric Blake, Principal Software Engineer Red Hat, Inc. +1-919-301-3266 Virtualization: qemu.org | libvirt.org