]> git.proxmox.com Git - mirror_qemu.git/commit
backup-top: Begin drain earlier
authorMax Reitz <mreitz@redhat.com>
Thu, 19 Dec 2019 18:26:38 +0000 (19:26 +0100)
committerMax Reitz <mreitz@redhat.com>
Mon, 6 Jan 2020 13:26:23 +0000 (14:26 +0100)
commit503ca1262bab2c11c533a4816d1ff4297d4f58a6
treed49fae5fbf67941fac45bd5789fb3b7a6a566b67
parent75ab574b4c722e96d56b7f787a531981f659b5f8
backup-top: Begin drain earlier

When dropping backup-top, we need to drain the node before freeing the
BlockCopyState.  Otherwise, requests may still be in flight and then the
assertion in shres_destroy() will fail.

(This becomes visible in intermittent failure of 056.)

Cc: qemu-stable@nongnu.org
Signed-off-by: Max Reitz <mreitz@redhat.com>
Message-id: 20191219182638.104621-1-mreitz@redhat.com
Signed-off-by: Max Reitz <mreitz@redhat.com>
block/backup-top.c