]> git.proxmox.com Git - mirror_qemu.git/commit
qemu-img: wait for convert coroutines to complete
authorAnton Nefedov <anton.nefedov@virtuozzo.com>
Wed, 26 Apr 2017 08:33:15 +0000 (11:33 +0300)
committerKevin Wolf <kwolf@redhat.com>
Thu, 11 May 2017 10:08:24 +0000 (12:08 +0200)
commitb91127edd0ff96f27f1e58e47f4e9f9d6a0fed02
tree3b752d2206e2247b3fd6c13c20ff2e0350fbad13
parent22d5cd82e98b61b1dbd791fab9f4ae0f77c0ed14
qemu-img: wait for convert coroutines to complete

On error path (like i/o error in one of the coroutines), it's required to
  - wait for coroutines completion before cleaning the common structures
  - reenter dependent coroutines so they ever finish

Introduced in 2d9187bc65.

Cc: qemu-stable@nongnu.org
Signed-off-by: Anton Nefedov <anton.nefedov@virtuozzo.com>
Reviewed-by: Peter Lieven <pl@kamp.de>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
qemu-img.c