s3: smbd: Change aio_pending_size static variable to a new "aio max threads" smb...
authorJeremy Allison <jra@samba.org>
Thu, 12 Nov 2015 21:23:30 +0000 (13:23 -0800)
committerJeremy Allison <jra@samba.org>
Fri, 13 Nov 2015 20:36:19 +0000 (21:36 +0100)
commitc4be0b7ff4f1d2a3e5c1664e4735f35381f78a5e
tree7aa2230b6cde595a07c1fca092f8a618be8c5e25
parentc83ecbb51bddb1642eb4ee10c24f6b721af66c45
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>
docs-xml/smbdotconf/tuning/aiomaxthreads.xml [new file with mode: 0644]
lib/param/loadparm.c
source3/modules/vfs_aio_fork.c
source3/modules/vfs_aio_linux.c
source3/modules/vfs_aio_pthread.c
source3/modules/vfs_default.c
source3/param/loadparm.c
source3/smbd/aio.c
source3/smbd/proto.h