summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPavel Shilovsky <pshilov@microsoft.com>2019-01-18 11:30:26 -0800
committerSteve French <stfrench@microsoft.com>2019-03-05 18:10:01 -0600
commit5b964852609b2826126a526851f316fc06f5e37e (patch)
tree1ec567963248ba9e06f8ca76397d8e56cdde2e23
parentbb1bccb60c2ebd9a6f895507d1d48d5ed773814e (diff)
downloadlinux-5b964852609b2826126a526851f316fc06f5e37e.tar.bz2
CIFS: Set reconnect instance to one initially
Currently we set reconnect instance to zero on the first connection but this is not convenient because we need to reserve some special value for credit handling on reconnects which is coming in subsequent patches. Fix this by starting with one when initiating a new TCP connection. Signed-off-by: Pavel Shilovsky <pshilov@microsoft.com> Signed-off-by: Steve French <stfrench@microsoft.com>
-rw-r--r--fs/cifs/connect.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/cifs/connect.c b/fs/cifs/connect.c
index 306a2a6f4e47..46bee3b4eeed 100644
--- a/fs/cifs/connect.c
+++ b/fs/cifs/connect.c
@@ -2657,7 +2657,7 @@ cifs_get_tcp_session(struct smb_vol *volume_info)
volume_info->target_rfc1001_name, RFC1001_NAME_LEN_WITH_NULL);
tcp_ses->session_estab = false;
tcp_ses->sequence_number = 0;
- tcp_ses->reconnect_instance = 0;
+ tcp_ses->reconnect_instance = 1;
tcp_ses->lstrp = jiffies;
spin_lock_init(&tcp_ses->req_lock);
INIT_LIST_HEAD(&tcp_ses->tcp_ses_list);