diff options
author | Jeremy Allison <jra@samba.org> | 2015-11-12 13:23:30 -0800 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2015-11-13 21:36:19 +0100 |
commit | c4be0b7ff4f1d2a3e5c1664e4735f35381f78a5e (patch) | |
tree | 7aa2230b6cde595a07c1fca092f8a618be8c5e25 /source3/param/loadparm.c | |
parent | c83ecbb51bddb1642eb4ee10c24f6b721af66c45 (diff) | |
download | samba-c4be0b7ff4f1d2a3e5c1664e4735f35381f78a5e.tar.gz |
s3: smbd: Change aio_pending_size static variable to a new "aio max threads" smb.conf parameter.
Removes accessor functions as now this parameter is set
under user control in smb.conf. Default is 100.
Note that this doesn't limit the number of outstanding
aio requests, it just causes them to go onto the
pthreadpool queue.
Now we need to prioritize pthreadpool pipe replies
ahead of incoming SMB2 requests, but that's a patch
for another day.
Based on ideas from Volker.
Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Christof Schmitt <cs@samba.org>
Reviewed-by: Michael Adam <obnox@samba.org>
Diffstat (limited to 'source3/param/loadparm.c')
-rw-r--r-- | source3/param/loadparm.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source3/param/loadparm.c b/source3/param/loadparm.c index b24d198a1d9..9f40e65f33f 100644 --- a/source3/param/loadparm.c +++ b/source3/param/loadparm.c @@ -917,6 +917,8 @@ static void init_globals(struct loadparm_context *lp_ctx, bool reinit_globals) Globals.web_port = 901; + Globals.aio_max_threads = 100; + /* Now put back the settings that were set with lp_set_cmdline() */ apply_lp_set_cmdline(); } |