diff options
author | Christof Schmitt <cs@samba.org> | 2014-06-27 13:05:59 -0700 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2014-07-09 00:56:50 +0200 |
commit | f01af728fedc86a5802a2ba30545d62fc6d610d3 (patch) | |
tree | cb70a530dbf530eb94a6a6f7a5b627a269870bf2 /source3/smbd/msdfs.c | |
parent | d3417b253e67aa476694d9c763fc3d8ee8f4fd90 (diff) | |
download | samba-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.c | 3 |
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) { |