From f01af728fedc86a5802a2ba30545d62fc6d610d3 Mon Sep 17 00:00:00 2001 From: Christof Schmitt Date: Fri, 27 Jun 2014 13:05:59 -0700 Subject: 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 Reviewed-by: Jeremy Allison Autobuild-User(master): Jeremy Allison Autobuild-Date(master): Wed Jul 9 00:56:50 CEST 2014 on sn-devel-104 --- source3/smbd/msdfs.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'source3/smbd/msdfs.c') 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) { -- cgit