]> git.ipfire.org Git - thirdparty/qemu.git/commit
qcow2: move qcow2_store_persistent_dirty_bitmaps() before cache flushing
authorPavel Butsykin <pbutsykin@virtuozzo.com>
Mon, 4 Sep 2017 10:18:00 +0000 (13:18 +0300)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Fri, 15 Sep 2017 00:29:40 +0000 (19:29 -0500)
commitc6841b112e995a0635db59fe25da9a308c595b7a
tree5919fed2e5136de3535be2e1a8004411461d5393
parent65a24b5c448710d1d2cf2ecdaea620793a9437e5
qcow2: move qcow2_store_persistent_dirty_bitmaps() before cache flushing

After calling qcow2_inactivate(), all qcow2 caches must be flushed, but this
may not happen, because the last call qcow2_store_persistent_dirty_bitmaps()
can lead to marking l2/refcont cache as dirty.

Let's move qcow2_store_persistent_dirty_bitmaps() before the caсhe flushing
to fix it.

Cc: qemu-stable@nongnu.org
Signed-off-by: Pavel Butsykin <pbutsykin@virtuozzo.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
(cherry picked from commit 83a8c775a8bf134eb18a719322939b74a818d750)
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
block/qcow2.c