Re: [Qemu-devel] [PATCH v3] block/vdi: Add locking for parallel requests

2015-03-04 Thread Kevin Wolf
Am 27.02.2015 um 20:54 hat Max Reitz geschrieben: > 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 du

Re: [Qemu-devel] [PATCH v3] block/vdi: Add locking for parallel requests

2015-03-02 Thread Stefan Hajnoczi
On Fri, Feb 27, 2015 at 02:54:39PM -0500, Max Reitz wrote: > 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 overw

Re: [Qemu-devel] [PATCH v3] block/vdi: Add locking for parallel requests

2015-03-02 Thread Paolo Bonzini
On 27/02/2015 20:54, Max Reitz wrote: > 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 p

[Qemu-devel] [PATCH v3] block/vdi: Add locking for parallel requests

2015-02-27 Thread Max Reitz
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/+bu