]> git.proxmox.com Git - mirror_qemu.git/commit
block: reopen: Queue children after their parents
authorKevin Wolf <kwolf@redhat.com>
Thu, 14 Sep 2017 12:53:46 +0000 (14:53 +0200)
committerKevin Wolf <kwolf@redhat.com>
Tue, 26 Sep 2017 12:46:23 +0000 (14:46 +0200)
commit1857c97b76af02537b954c86dab066503950a4fd
treee0076a5d3a30fb32f084939b871816005a465542
parent148eb13c84cccd0eedd6e59f90e0151bd7bac9fa
block: reopen: Queue children after their parents

We will calculate the required new permissions in the prepare stage of a
reopen. Required permissions of children can be influenced by the
changes made to their parents, but parents are independent from their
children. This means that permissions need to be calculated top-down. In
order to achieve this, queue parents before their children rather than
queuing the children first.

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