block: reverse order for reopen commits
commitfcd6a4f42deef7e9f28c7b82f7d340200fb7846e
authorVladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Fri, 27 Sep 2019 12:23:48 +0000 (27 15:23 +0300)
committerJohn Snow <jsnow@redhat.com>
Thu, 17 Oct 2019 21:02:32 +0000 (17 17:02 -0400)
tree45e6afb23e600531f5cac946d919c4243d803d07
parent859443b0fb7eba258325f75f6444270c50008e65
block: reverse order for reopen commits

It's needed to fix reopening qcow2 with bitmaps to RW. Currently it
can't work, as qcow2 needs write access to file child, to mark bitmaps
in-image with IN_USE flag. But usually children goes after parents in
reopen queue and file child is still RO on qcow2 reopen commit. Reverse
reopen order to fix it.

Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Acked-by: Max Reitz <mreitz@redhat.com>
Acked-by: John Snow <jsnow@redhat.com>
Message-id: 20190927122355.7344-3-vsementsov@virtuozzo.com
Signed-off-by: John Snow <jsnow@redhat.com>
block.c