diff options
author | Volker Lendecke <vl@samba.org> | 2014-03-24 10:39:56 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2014-03-27 06:06:11 +0100 |
commit | c5d07df6abe657ff196266bbfbb376ca7db0968b (patch) | |
tree | 926b6cf1b9444e90aa8e17f0c09d7a8df2a3433d /source3/modules/vfs_aio_pthread.c | |
parent | 84aa2ddd861549d6ec8d1ef15f4fd518e03f449b (diff) | |
download | samba-c5d07df6abe657ff196266bbfbb376ca7db0968b.tar.gz samba-c5d07df6abe657ff196266bbfbb376ca7db0968b.tar.xz samba-c5d07df6abe657ff196266bbfbb376ca7db0968b.zip |
pthreadpool: Allow multiple jobs to be received
This can avoid syscalls when multiple jobs are finished simultaneously
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source3/modules/vfs_aio_pthread.c')
-rw-r--r-- | source3/modules/vfs_aio_pthread.c | 4 |
1 files changed, 2 insertions, 2 deletions
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; |