Max Reitz f0ab6f1096 block/vdi: Add locking for parallel requests
When allocating a new cluster, the first write to it must be the one
doing the allocation, because that one pads its write request to the
cluster size; if another write to that cluster is executed before it,
that write will be overwritten due to the padding.

See https://bugs.launchpad.net/qemu/+bug/1422307 for what can go wrong
without this patch.

Cc: qemu-stable <qemu-stable@nongnu.org>
Signed-off-by: Max Reitz <mreitz@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
2015-03-10 14:02:24 +01:00
..
2015-01-13 11:47:56 +00:00
2015-03-10 14:02:21 +01:00
2015-02-06 17:24:21 +01:00
2015-02-16 14:36:03 +00:00
2014-12-10 10:31:19 +01:00
2014-11-03 11:41:47 +00:00
2015-02-06 17:24:21 +01:00
2015-02-16 15:07:19 +00:00
2014-12-12 13:16:56 +00:00
2014-08-15 15:07:14 +02:00
2015-02-16 15:07:17 +00:00