Skip to content
Commit c6841b11 authored by Pavel Butsykin's avatar Pavel Butsykin Committed by Michael Roth
Browse files

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: default avatarPavel Butsykin <pbutsykin@virtuozzo.com>
Signed-off-by: default avatarKevin Wolf <kwolf@redhat.com>
(cherry picked from commit 83a8c775)
Signed-off-by: default avatarMichael Roth <mdroth@linux.vnet.ibm.com>
parent 65a24b5c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment