From c5d07df6abe657ff196266bbfbb376ca7db0968b Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Mon, 24 Mar 2014 10:39:56 +0000 Subject: pthreadpool: Allow multiple jobs to be received This can avoid syscalls when multiple jobs are finished simultaneously Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison --- source3/modules/vfs_aio_pthread.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source3/modules') diff --git a/source3/modules/vfs_aio_pthread.c b/source3/modules/vfs_aio_pthread.c index f7756b946c..de114d1292 100644 --- a/source3/modules/vfs_aio_pthread.c +++ b/source3/modules/vfs_aio_pthread.c @@ -166,8 +166,8 @@ static void aio_open_handle_completion(struct tevent_context *event_ctx, return; } - ret = pthreadpool_finished_job(open_pool, &jobid); - if (ret) { + ret = pthreadpool_finished_jobs(open_pool, &jobid, 1); + if (ret != 1) { smb_panic("aio_open_handle_completion"); /* notreached. */ return; -- cgit