mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-07-26 20:03:54 -06:00
thread-pool: Rename AIO pool functions to *_aio() and data types to *Aio
These names conflict with ones used by future generic thread pool equivalents. Generic names should belong to the generic pool type, not specific (AIO) type. Acked-by: Fabiano Rosas <farosas@suse.de> Reviewed-by: Cédric Le Goater <clg@redhat.com> Reviewed-by: Peter Xu <peterx@redhat.com> Signed-off-by: Maciej S. Szmigiero <maciej.szmigiero@oracle.com> Link: https://lore.kernel.org/qemu-devel/70f9e0fb4b01042258a1a57996c64d19779dc7f0.1741124640.git.maciej.szmigiero@oracle.com Signed-off-by: Cédric Le Goater <clg@redhat.com>
This commit is contained in:
parent
03c6468a13
commit
dc67daeed5
5 changed files with 42 additions and 42 deletions
|
@ -369,7 +369,7 @@ aio_ctx_finalize(GSource *source)
|
|||
QEMUBH *bh;
|
||||
unsigned flags;
|
||||
|
||||
thread_pool_free(ctx->thread_pool);
|
||||
thread_pool_free_aio(ctx->thread_pool);
|
||||
|
||||
#ifdef CONFIG_LINUX_AIO
|
||||
if (ctx->linux_aio) {
|
||||
|
@ -435,10 +435,10 @@ GSource *aio_get_g_source(AioContext *ctx)
|
|||
return &ctx->source;
|
||||
}
|
||||
|
||||
ThreadPool *aio_get_thread_pool(AioContext *ctx)
|
||||
ThreadPoolAio *aio_get_thread_pool(AioContext *ctx)
|
||||
{
|
||||
if (!ctx->thread_pool) {
|
||||
ctx->thread_pool = thread_pool_new(ctx);
|
||||
ctx->thread_pool = thread_pool_new_aio(ctx);
|
||||
}
|
||||
return ctx->thread_pool;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue