1 do not use bdrv_drain_all()
3 This seems to hang now (qemu 2.2), causing timeouts.
6 ===================================================================
7 --- new.orig/blockdev.c 2014-12-29 06:27:15.000000000 +0100
8 +++ new/blockdev.c 2014-12-29 07:11:53.000000000 +0100
10 vma_writer_set_error(backup_state.vmaw, "backup cancelled");
13 - /* drain all i/o (awake jobs waiting for aio) */
16 GList *l = backup_state.di_list;
18 PVEBackupDevInfo *di = (PVEBackupDevInfo *)l->data;
20 BlockJob *job = di->bs->job;
23 - block_job_cancel_sync(job);
24 - bdrv_drain_all(); /* drain all i/o (awake jobs waiting for aio) */
25 + block_job_cancel_sync(job);