qcow2: Avoid bounce buffers for AIO write requests
commit6f5f060b736cedc2d962114d20805fdd2889513a
authorKevin Wolf <kwolf@redhat.com>
Mon, 13 Sep 2010 16:24:10 +0000 (13 18:24 +0200)
committerKevin Wolf <kwolf@redhat.com>
Tue, 21 Sep 2010 13:39:43 +0000 (21 15:39 +0200)
tree8589b132acaa662598a1954c4cc5461ed6b204f2
parentbd28f835652e396841bb73080a07bcc08fe21bf0
qcow2: Avoid bounce buffers for AIO write 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 write path. Encrypted
images continue to use a bounce buffer, however with constant size.

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