mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 15:23:53 -06:00
thread-pool: Remove thread_pool_submit() function
This function name conflicts with one used by a future generic thread pool function and it was only used by one test anyway. Update the trace event name in thread_pool_submit_aio() accordingly. 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/6830f07777f939edaf0a2d301c39adcaaf3817f0.1741124640.git.maciej.szmigiero@oracle.com Signed-off-by: Cédric Le Goater <clg@redhat.com>
This commit is contained in:
parent
d3237d0d85
commit
03c6468a13
4 changed files with 6 additions and 12 deletions
|
@ -256,7 +256,7 @@ BlockAIOCB *thread_pool_submit_aio(ThreadPoolFunc *func, void *arg,
|
|||
|
||||
QLIST_INSERT_HEAD(&pool->head, req, all);
|
||||
|
||||
trace_thread_pool_submit(pool, req, arg);
|
||||
trace_thread_pool_submit_aio(pool, req, arg);
|
||||
|
||||
qemu_mutex_lock(&pool->lock);
|
||||
if (pool->idle_threads == 0 && pool->cur_threads < pool->max_threads) {
|
||||
|
@ -290,11 +290,6 @@ int coroutine_fn thread_pool_submit_co(ThreadPoolFunc *func, void *arg)
|
|||
return tpc.ret;
|
||||
}
|
||||
|
||||
void thread_pool_submit(ThreadPoolFunc *func, void *arg)
|
||||
{
|
||||
thread_pool_submit_aio(func, arg, NULL, NULL);
|
||||
}
|
||||
|
||||
void thread_pool_update_params(ThreadPool *pool, AioContext *ctx)
|
||||
{
|
||||
qemu_mutex_lock(&pool->lock);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue