summaryrefslogtreecommitdiff
path: root/source3/modules/vfs_aio_pthread.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2015-11-12 09:20:05 -0800
committerChristof Schmitt <cs@samba.org>2015-11-13 01:44:21 +0100
commit803938260dadef63d2685860bb63a700c95424e0 (patch)
treef8277a2d24d2ea32cefce665d32ac2cad1a38307 /source3/modules/vfs_aio_pthread.c
parent0137105c862073f5a4422bcd424a51de33e58d37 (diff)
downloadsamba-803938260dadef63d2685860bb63a700c95424e0.tar.gz
s3: smbd: Remove aio_pending_size from globals.
Access via functions only. Signed-off-by: Jeremy Allison <jra@samba.org> Signed-off-by: Christof Schmitt <cs@samba.org>
Diffstat (limited to 'source3/modules/vfs_aio_pthread.c')
-rw-r--r--source3/modules/vfs_aio_pthread.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/modules/vfs_aio_pthread.c b/source3/modules/vfs_aio_pthread.c
index 059d745a941..72c812f14e0 100644
--- a/source3/modules/vfs_aio_pthread.c
+++ b/source3/modules/vfs_aio_pthread.c
@@ -51,7 +51,7 @@ static bool init_aio_threadpool(struct tevent_context *ev_ctx,
return true;
}
- ret = pthreadpool_init(aio_pending_size, pp_pool);
+ ret = pthreadpool_init(get_aio_pending_size(), pp_pool);
if (ret) {
errno = ret;
return false;
@@ -69,7 +69,7 @@ static bool init_aio_threadpool(struct tevent_context *ev_ctx,
}
DEBUG(10,("init_aio_threadpool: initialized with up to %d threads\n",
- aio_pending_size));
+ get_aio_pending_size()));
return true;
}