OSDN Git Service

qcow2: Unlock during COW
authorKevin Wolf <kwolf@redhat.com>
Mon, 19 Sep 2011 09:26:48 +0000 (11:26 +0200)
committerKevin Wolf <kwolf@redhat.com>
Mon, 5 Dec 2011 13:49:40 +0000 (14:49 +0100)
commit1b9f1491f82de0c8f9b09d1a06ac33304449a634
tree13b07e148453376ef976a01160c049b7b974ebde
parent1c8a881daaca6fe0646a425b0970fb3ad25f6732
qcow2: Unlock during COW

Unlocking during COW allows for more parallelism. One change it requires is
that buffers are dynamically allocated instead of just using a per-image
buffer.

While touching the code, drop the synchronous qcow2_read() function and replace
it by a bdrv_read() call.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/qcow2-cluster.c