]> git.proxmox.com Git - mirror_qemu.git/commit - block.c
block: Inactivate parents before children
authorKevin Wolf <kwolf@redhat.com>
Thu, 4 May 2017 16:52:39 +0000 (18:52 +0200)
committerKevin Wolf <kwolf@redhat.com>
Thu, 11 May 2017 10:08:24 +0000 (12:08 +0200)
commit38701b6aef5e934c5901905e8ca2c50453088a81
tree5529364f508d67ce4837989f005b263eafd68775
parentcfa1a5723f0fc8eb6563fb1d19c206fd5e40cd41
block: Inactivate parents before children

The proper order for inactivating block nodes is that first the parents
get inactivated and then the children. If we do things in this order, we
can assert that we didn't accidentally leave a parent activated when one
of its child nodes is inactive.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
block.c