s3:smbd: use lp_smbd_max_async_dosmode()
authorRalph Boehme <slow@samba.org>
Sun, 2 Dec 2018 08:23:29 +0000 (09:23 +0100)
committerJeremy Allison <jra@samba.org>
Thu, 6 Dec 2018 00:43:13 +0000 (01:43 +0100)
commit941d7e159a8098b12294ca561fd8e4b8f235c18f
tree30da62cc549f752d4a21f7b515e40de7313d0ee7
parent14132e89b4b9ac6712fe6f49945da3f4d987cc14
s3:smbd: use lp_smbd_max_async_dosmode()

Parametric options have a performance impact, use the normal options
added in the previous commit.

"aio max threads" can only be calculated at run time and requires a
handle to a pthreadpool_tevent which loadparm will never have.

Because of that lp_smbd_max_async_dosmode() will always return 0 as
default and it's up to us to calculate "aio max threads * 2" if
lp_smbd_max_async_dosmode() returns 0.

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/smbd/smb2_query_directory.c