]> xenbits.xensource.com Git - qemu-xen-3.4-testing.git/commit
Refactor aio callback allocation to use an aiocb pool (Avi Kivity)
authorIan Jackson <ian.jackson@eu.citrix.com>
Wed, 7 Oct 2009 14:36:19 +0000 (15:36 +0100)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Tue, 13 Oct 2009 16:32:33 +0000 (17:32 +0100)
commit358362ffc971c9e817fbf1c5a6a51a75163cd418
tree743f4143247cb6719e04126a34792022f8b9d752
parent1db01b338aa3f1e452b76bf08788e900051381b6
Refactor aio callback allocation to use an aiocb pool (Avi Kivity)

Move the AIOCB allocation code to use a dedicate structure, AIOPool.  AIOCB
specific information, such as the AIOCB size and cancellation routine, is
moved into the pool.

At present, there is exactly one pool per block format driver, maintaining
the status quo.

Signed-off-by: Avi Kivity <avi@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6870 c046a42c-6fe2-441c-8c8c-71466251a162

[ Backported from 6bbff9a0b495918309074ac60375be5f9dc868b3
  by Stefano Stabellini. ]

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
(cherry picked from commit efb4162ee6ad7ea15d1589eb09409854379f5139)
block.c
block_int.h