diff options
author | Max Reitz <mreitz@redhat.com> | 2015-02-27 14:54:39 -0500 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2015-03-10 14:02:24 +0100 |
commit | f0ab6f109630940146cbaf47d0cd99993ddba824 (patch) | |
tree | e35a0bc66325fe5af721df5fb55de79571574e94 /sysconfigs | |
parent | aef58bdc1e7d8f37cdf838b49f160c520399c84f (diff) |
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>
Diffstat (limited to 'sysconfigs')
0 files changed, 0 insertions, 0 deletions