qcow2: set L2 cache dependency in qcow2_alloc_bytes()
commitc1f5bafd70a8d9366570a3de472ef108415cd631
authorStefan Hajnoczi <stefanha@redhat.com>
Mon, 4 Mar 2013 14:02:32 +0000 (4 15:02 +0100)
committerStefan Hajnoczi <stefanha@redhat.com>
Fri, 15 Mar 2013 15:07:50 +0000 (15 16:07 +0100)
tree2d074ff55407cfdab33e624972ecddda1604bb4b
parentf6977f15561973d4a67b6aa46da88aa678c505dd
qcow2: set L2 cache dependency in qcow2_alloc_bytes()

Compressed writes use qcow2_alloc_bytes() to allocate space with byte
granularity.  The affected clusters' refcounts will be incremented but
we do not need to flush yet.

Set a L2 cache dependency on the refcount block cache, so that the
refcounts get written out before the L2 updates.

Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/qcow2-refcount.c