Re: [Qemu-devel] [RFC PATCH v2 01/23] qcow2: Handle dependencies earlier

2013-02-14 Thread Stefan Hajnoczi
On Wed, Feb 13, 2013 at 02:21:51PM +0100, Kevin Wolf wrote: @@ -882,20 +876,55 @@ int qcow2_alloc_cluster_offset(BlockDriverState *bs, uint64_t offset, trace_qcow2_alloc_clusters_offset(qemu_coroutine_self(), offset, n_start, n_end); -/*

[Qemu-devel] [RFC PATCH v2 01/23] qcow2: Handle dependencies earlier

2013-02-13 Thread Kevin Wolf
Handling overlapping allocations isn't just a detail of cluster allocation. It is rather one of three ways to get the host cluster offset for a write request: 1. If a request overlaps an in-flight allocations, the cluster offset can be taken from there (this is what handle_dependencies will