aboutsummaryrefslogtreecommitdiffstats
path: root/fs/cifs/connect.c
diff options
context:
space:
mode:
authorPavel Shilovsky <piastry@etersoft.ru>2011-12-27 07:23:34 -0500
committerPavel Shilovsky <pshilovsky@samba.org>2012-07-24 13:54:59 -0400
commitaa24d1e9692411e605084938ced6b160f92df454 (patch)
tree399446513c2437af67ca8ed065ba16f272715bb4 /fs/cifs/connect.c
parentfaaf946a7d5b79194358437150f34ab4c66bfe21 (diff)
CIFS: Process reconnects for SMB2 shares
Signed-off-by: Pavel Shilovsky <piastry@etersoft.ru> Signed-off-by: Steve French <smfrench@gmail.com>
Diffstat (limited to 'fs/cifs/connect.c')
-rw-r--r--fs/cifs/connect.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/cifs/connect.c b/fs/cifs/connect.c
index a6197224b102..7cf8b1632242 100644
--- a/fs/cifs/connect.c
+++ b/fs/cifs/connect.c
@@ -317,6 +317,9 @@ cifs_reconnect(struct TCP_Server_Info *server)
317 server->tcpStatus = CifsNeedReconnect; 317 server->tcpStatus = CifsNeedReconnect;
318 spin_unlock(&GlobalMid_Lock); 318 spin_unlock(&GlobalMid_Lock);
319 server->maxBuf = 0; 319 server->maxBuf = 0;
320#ifdef CONFIG_CIFS_SMB2
321 server->max_read = 0;
322#endif
320 323
321 cFYI(1, "Reconnecting tcp session"); 324 cFYI(1, "Reconnecting tcp session");
322 325