summaryrefslogtreecommitdiffstats
path: root/include/exec/memory.h
diff options
context:
space:
mode:
authorKevin Wolf2015-05-06 13:21:51 +0200
committerKevin Wolf2015-05-22 17:08:00 +0200
commitecbda7a22576591a84f44de1be0150faf6001f1c (patch)
treed01afef7f41119ede1366f027b0023c9a709d240 /include/exec/memory.h
parentMerge remote-tracking branch 'remotes/stefanha/tags/block-pull-request' into ... (diff)
downloadqemu-ecbda7a22576591a84f44de1be0150faf6001f1c.tar.gz
qemu-ecbda7a22576591a84f44de1be0150faf6001f1c.tar.xz
qemu-ecbda7a22576591a84f44de1be0150faf6001f1c.zip
qcow2: Flush pending discards before allocating cluster
Before a freed cluster can be reused, pending discards for this cluster must be processed. The original assumption was that this was not a problem because discards are only cached during discard/write zeroes operations, which are synchronous so that no concurrent write requests can cause cluster allocations. However, the discard/write zeroes operation itself can allocate a new L2 table (and it has to in order to put zero flags there), so make sure we can cope with the situation. This fixes https://bugs.launchpad.net/bugs/1349972. Cc: qemu-stable@nongnu.org Signed-off-by: Kevin Wolf <kwolf@redhat.com> Reviewed-by: Max Reitz <mreitz@redhat.com>
Diffstat (limited to 'include/exec/memory.h')
0 files changed, 0 insertions, 0 deletions