summaryrefslogtreecommitdiffstats
path: root/source3/smbd/msdfs.c
diff options
context:
space:
mode:
authorChristof Schmitt <cs@samba.org>2014-06-27 13:05:59 -0700
committerJeremy Allison <jra@samba.org>2014-07-09 00:56:50 +0200
commitf01af728fedc86a5802a2ba30545d62fc6d610d3 (patch)
treecb70a530dbf530eb94a6a6f7a5b627a269870bf2 /source3/smbd/msdfs.c
parentd3417b253e67aa476694d9c763fc3d8ee8f4fd90 (diff)
downloadsamba-f01af728fedc86a5802a2ba30545d62fc6d610d3.tar.gz
samba-f01af728fedc86a5802a2ba30545d62fc6d610d3.tar.xz
samba-f01af728fedc86a5802a2ba30545d62fc6d610d3.zip
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
Diffstat (limited to 'source3/smbd/msdfs.c')
-rw-r--r--source3/smbd/msdfs.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/source3/smbd/msdfs.c b/source3/smbd/msdfs.c
index 97849d2e6e..1239ade08a 100644
--- a/source3/smbd/msdfs.c
+++ b/source3/smbd/msdfs.c
@@ -247,8 +247,7 @@ static NTSTATUS create_conn_struct_as_root(TALLOC_CTX *ctx,
sconn->ev_ctx = ev;
sconn->msg_ctx = msg;
sconn->sock = -1;
- sconn->smb1.echo_handler.trusted_fd = -1;
- sconn->smb1.echo_handler.socket_lock_fd = -1;
+ smbd_echo_init(sconn);
conn = conn_new(sconn);
if (conn == NULL) {