aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorKevin Wolf <kwolf@redhat.com>2009-08-31 16:48:49 +0200
committerAnthony Liguori <aliguori@us.ibm.com>2009-09-09 17:31:26 -0500
commitf214978a427ea40b0b86af10548fe0270f6d0db0 (patch)
treefbb324e8752868bf8f0ba6ba15c01bbb9be47cda /tests
parentea80b906f445969a5ccc781beb4e8bb7f60bbdbb (diff)
downloadqemu-f214978a427ea40b0b86af10548fe0270f6d0db0.zip
qemu-f214978a427ea40b0b86af10548fe0270f6d0db0.tar.gz
qemu-f214978a427ea40b0b86af10548fe0270f6d0db0.tar.bz2
qcow2: Order concurrent AIO requests on the same unallocated cluster
When two AIO requests write to the same cluster, and this cluster is unallocated, currently both requests allocate a new cluster and the second one merges the first one when it is completed. This means an cluster allocation, a read and a cluster deallocation which cause some overhead. If we simply let the second request wait until the first one is done, we improve overall performance with AIO requests (specifially, qcow2/virtio combinations). This patch maintains a list of in-flight requests that have allocated new clusters. A second request touching the same cluster is limited so that it either doesn't touch the allocation of the first request (so it can have a non-overlapping allocation) or it waits for the first request to complete. Signed-off-by: Kevin Wolf <kwolf@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'tests')
0 files changed, 0 insertions, 0 deletions