]> rtime.felk.cvut.cz Git - lisovros/qemu_apohw.git/commit
block: ensure bdrv_drain_all() works during bdrv_delete()
authorStefan Hajnoczi <stefanha@redhat.com>
Thu, 27 Jun 2013 13:32:26 +0000 (15:32 +0200)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Tue, 24 Sep 2013 21:31:10 +0000 (16:31 -0500)
commit670599a08c052f6ef841743731a8f06d4b50ec99
tree6f0fc6e1036fb045d4ac2ae2f13826c4de98cfd0
parent1ee2daeb6448312d6d0e22175f5c1b9b01f8974c
block: ensure bdrv_drain_all() works during bdrv_delete()

In bdrv_delete() make sure to call bdrv_make_anon() *after* bdrv_close()
so that the device is still seen by bdrv_drain_all() when iterating
bdrv_states.

Cc: qemu-stable@nongnu.org
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
(cherry picked from commit e1b5c52e04d04bb93546c6e37e8884889d047cb1)

Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
block.c