push down vector linearization to posix-aio-compat.c (Christoph Hellwig)
authoraliguori <aliguori@c046a42c-6fe2-441c-8c8c-71466251a162>
Tue, 7 Apr 2009 18:43:24 +0000 (18:43 +0000)
committeraliguori <aliguori@c046a42c-6fe2-441c-8c8c-71466251a162>
Tue, 7 Apr 2009 18:43:24 +0000 (18:43 +0000)
commitf141eafe286c785f7e2c1e312a73f90d66bdfb90
tree049474e891e06deec79bd3d58d49b49ba627276a
parentc87c0672936a5b825c0b95bb1d7f5d6dc92294e4
push down vector linearization to posix-aio-compat.c (Christoph Hellwig)

Make all AIO requests vectored and defer linearization until the actual
I/O thread.  This prepares for using native preadv/pwritev.

Also enables asynchronous direct I/O by handling that case in the I/O thread.

Qcow and qcow2 propably want to be adopted to directly deal with multi-segment
requests, but that can be implemented later.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7020 c046a42c-6fe2-441c-8c8c-71466251a162
block-qcow.c
block-qcow2.c
block-raw-posix.c
block.c
block_int.h
posix-aio-compat.c
posix-aio-compat.h