On 05/17/2017 12:09 PM, Stefan Hajnoczi wrote: > Call bdrv_inc/dec_in_flight() for vmstate reads/writes. This seems > unnecessary at first glance because vmstate reads/writes are done > synchronously while the guest is stopped. But we need the bdrv_wakeup() > in bdrv_dec_in_flight() so the main loop sees request completion. > Besides, it's cleaner to count vmstate reads/writes like ordinary > read/write requests. > > The bdrv_wakeup() partially fixes a 'savevm' hang with -object iothread. > > Signed-off-by: Stefan Hajnoczi <stefa...@redhat.com> > --- > block/io.c | 17 ++++++++++++----- > 1 file changed, 12 insertions(+), 5 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
signature.asc
Description: OpenPGP digital signature