Re: [Qemu-devel] [PATCH v2 0/3] aio: use g_slice_alloc() for AIOCB pooling

2012-11-12 Thread Kevin Wolf
Am 31.10.2012 16:34, schrieb Stefan Hajnoczi: > AIO control blocks are frequently acquired and released because each aio > request involves at least one AIOCB. Therefore, we pool them to avoid heap > allocation overhead. > > The problem with the freelist approach in AIOPool is thread-safety. If

[Qemu-devel] [PATCH v2 0/3] aio: use g_slice_alloc() for AIOCB pooling

2012-10-31 Thread Stefan Hajnoczi
AIO control blocks are frequently acquired and released because each aio request involves at least one AIOCB. Therefore, we pool them to avoid heap allocation overhead. The problem with the freelist approach in AIOPool is thread-safety. If we want BlockDriverStates to associate with AioContexts