]> git.proxmox.com Git - mirror_qemu.git/commit - block/qcow2.c
qcow2: Avoid bounce buffers for AIO read requests
authorKevin Wolf <kwolf@redhat.com>
Mon, 13 Sep 2010 16:08:52 +0000 (18:08 +0200)
committerKevin Wolf <kwolf@redhat.com>
Tue, 21 Sep 2010 13:39:42 +0000 (15:39 +0200)
commitbd28f835652e396841bb73080a07bcc08fe21bf0
tree7f8b026a2beb604f1f6b7f47c90b13b734df4f44
parentb8a83a4f79ca4cd0689117b119ffaa1a91b00d52
qcow2: Avoid bounce buffers for AIO read requests

qcow2 used to use bounce buffers for any AIO requests. This does not only imply
unnecessary copying, but also unbounded allocations which should be avoided.

This patch removes bounce buffers from the normal AIO read path, and constrains
them to a constant size for encrypted images.

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