smbd: Use mutex instead of fcntl lock for echohandler coordination
authorChristof Schmitt <cs@samba.org>
Fri, 27 Jun 2014 20:05:59 +0000 (13:05 -0700)
committerJeremy Allison <jra@samba.org>
Tue, 8 Jul 2014 22:56:50 +0000 (00:56 +0200)
commitf01af728fedc86a5802a2ba30545d62fc6d610d3
treecb70a530dbf530eb94a6a6f7a5b627a269870bf2
parentd3417b253e67aa476694d9c763fc3d8ee8f4fd90
smbd: Use mutex instead of fcntl lock for echohandler coordination

This is based on a patch from Volker. When the system supports roboust
mutexes, they will be used for the coordiations between worker and
echohandler process. This avoids another aspect of the fcntl scalibility
issue when handling many client connections. When mutexes are not
available, the code falls back to the fcntl lock.

Signed-off-by: Christof Schmitt <cs@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Wed Jul  9 00:56:50 CEST 2014 on sn-devel-104
source3/smbd/globals.h
source3/smbd/msdfs.c
source3/smbd/process.c