qcow: add qcow_aio_setup helper
authorChristoph Hellwig <hch@lst.de>
Mon, 25 May 2009 13:45:37 +0000 (15:45 +0200)
committerAnthony Liguori <aliguori@us.ibm.com>
Wed, 27 May 2009 14:45:59 +0000 (09:45 -0500)
commitad53089b0d0b4bc0731d978e5713365e1a91ba74
treefd9c46d898b2231505f6769b58d9d825ce561bef
parent4099df586a0f16522383c4e4a9613e7c2dcd2491
qcow: add qcow_aio_setup helper

[this one is required for [PATCH] fully split aio_pool from BlockDriver,
 sorry for not sending it out earlier]

Add a qcow_aio_setup helper to qcow to shared common code between
the aio_readv and aio_writev methods.  Based on the function with
the same name in qcow2.

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