smbd: Use mutex instead of fcntl lock for echohandler coordination

Enterprise / Samba - Christof Schmitt [samba.org] - 8 July 2014 17:56 UTC

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.

f01af72 smbd: Use mutex instead of fcntl lock for echohandler coordination
source3/smbd/globals.h | 12 ++-
source3/smbd/msdfs.c | 3 +-
source3/smbd/process.c | 192 ++++++++++++++++++++++++++++++++++++++++--------
3 files changed, 173 insertions(+), 34 deletions(-)

Upstream: gitweb.samba.org


  • Share