connect.c (c1468c7e0ab9528db8e43e79ed75127885e3fb86) connect.c (e8aee4f4d2e3048704474d82f2563edfe2d2fe5b)
1// SPDX-License-Identifier: LGPL-2.1
2/*
3 *
4 * Copyright (C) International Business Machines Corp., 2002,2011
5 * Author(s): Steve French (sfrench@us.ibm.com)
6 *
7 */
8#include <linux/fs.h>

--- 1734 unchanged lines hidden (view full) ---

1743 ctx->source_rfc1001_name, RFC1001_NAME_LEN_WITH_NULL);
1744 memcpy(tcp_ses->server_RFC1001_name,
1745 ctx->target_rfc1001_name, RFC1001_NAME_LEN_WITH_NULL);
1746 tcp_ses->session_estab = false;
1747 tcp_ses->sequence_number = 0;
1748 tcp_ses->channel_sequence_num = 0; /* only tracked for primary channel */
1749 tcp_ses->reconnect_instance = 1;
1750 tcp_ses->lstrp = jiffies;
1// SPDX-License-Identifier: LGPL-2.1
2/*
3 *
4 * Copyright (C) International Business Machines Corp., 2002,2011
5 * Author(s): Steve French (sfrench@us.ibm.com)
6 *
7 */
8#include <linux/fs.h>

--- 1734 unchanged lines hidden (view full) ---

1743 ctx->source_rfc1001_name, RFC1001_NAME_LEN_WITH_NULL);
1744 memcpy(tcp_ses->server_RFC1001_name,
1745 ctx->target_rfc1001_name, RFC1001_NAME_LEN_WITH_NULL);
1746 tcp_ses->session_estab = false;
1747 tcp_ses->sequence_number = 0;
1748 tcp_ses->channel_sequence_num = 0; /* only tracked for primary channel */
1749 tcp_ses->reconnect_instance = 1;
1750 tcp_ses->lstrp = jiffies;
1751 tcp_ses->compress_algorithm = cpu_to_le16(ctx->compression);
1751 tcp_ses->compression.requested = ctx->compress;
1752 spin_lock_init(&tcp_ses->req_lock);
1753 spin_lock_init(&tcp_ses->srv_lock);
1754 spin_lock_init(&tcp_ses->mid_lock);
1755 INIT_LIST_HEAD(&tcp_ses->tcp_ses_list);
1756 INIT_LIST_HEAD(&tcp_ses->smb_ses_list);
1757 INIT_DELAYED_WORK(&tcp_ses->echo, cifs_echo_request);
1758 INIT_DELAYED_WORK(&tcp_ses->reconnect, smb2_reconnect_server);
1759 mutex_init(&tcp_ses->reconnect_mutex);

--- 2580 unchanged lines hidden ---
1752 spin_lock_init(&tcp_ses->req_lock);
1753 spin_lock_init(&tcp_ses->srv_lock);
1754 spin_lock_init(&tcp_ses->mid_lock);
1755 INIT_LIST_HEAD(&tcp_ses->tcp_ses_list);
1756 INIT_LIST_HEAD(&tcp_ses->smb_ses_list);
1757 INIT_DELAYED_WORK(&tcp_ses->echo, cifs_echo_request);
1758 INIT_DELAYED_WORK(&tcp_ses->reconnect, smb2_reconnect_server);
1759 mutex_init(&tcp_ses->reconnect_mutex);

--- 2580 unchanged lines hidden ---