CIFS: Process reconnects for SMB2 shares
[GitHub/mt8127/android_kernel_alcatel_ttab.git] / fs / cifs / connect.c
index a6197224b102699a20607a88a5da6c9a5f269cd6..7cf8b163224237da705997a544abd6e87b63e7e8 100644 (file)
@@ -317,6 +317,9 @@ cifs_reconnect(struct TCP_Server_Info *server)
                server->tcpStatus = CifsNeedReconnect;
        spin_unlock(&GlobalMid_Lock);
        server->maxBuf = 0;
+#ifdef CONFIG_CIFS_SMB2
+       server->max_read = 0;
+#endif
 
        cFYI(1, "Reconnecting tcp session");