Kevin Wolf ecbda7a225 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>
2015-05-22 17:08:00 +02:00
2015-05-08 14:11:10 +03:00
2013-04-18 13:50:53 +02:00
2015-02-06 16:11:38 +00:00
2015-03-19 11:30:37 +03:00
2015-04-30 13:21:42 +02:00
2015-05-11 14:49:03 +01:00
2015-05-11 08:59:07 -04:00
2015-05-14 12:15:18 -07:00
2015-05-20 10:23:08 +02:00
2015-04-04 09:45:59 +03:00
2014-06-16 13:24:35 +02:00
2013-09-05 09:40:31 -05:00
2015-05-22 09:37:33 +01:00
2015-04-28 15:36:09 +02:00
2013-10-11 09:34:56 -07:00
2015-04-26 16:49:24 +01:00
2015-04-30 16:05:48 +03:00
2013-07-23 02:41:31 +02:00
2015-05-08 14:11:10 +03:00
2015-02-05 17:16:14 +01:00
2015-04-30 16:55:16 +02:00
2015-02-16 15:07:19 +00:00
2014-05-24 00:07:29 +04:00
2015-05-11 08:59:07 -04:00
2013-10-11 09:34:56 -07:00
2015-05-14 12:15:18 -07:00
2015-04-25 22:05:07 +01:00
2013-10-11 09:34:56 -07:00

Read the documentation in qemu-doc.html or on http://wiki.qemu-project.org

- QEMU team
Description
No description provided
Readme 569 MiB
Languages
C 83%
C++ 6.3%
Python 3.2%
Dylan 2.9%
Shell 1.6%
Other 2.8%