]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
Fix reconnect to not defer smb3 session reconnect long after socket reconnect
authorSteve French <smfrench@gmail.com>
Thu, 23 Jun 2016 01:12:05 +0000 (20:12 -0500)
committerStefan Bader <stefan.bader@canonical.com>
Tue, 9 Aug 2016 13:09:06 +0000 (15:09 +0200)
commit71f650bfb0c3780d057ae698701c060c09c0e437
treeaf5873059e3a90be9c63becdd43e0cb4a577b8df
parent0666a0468f6c7b0311df9fbb49ebde372bd5bebe
Fix reconnect to not defer smb3 session reconnect long after socket reconnect

BugLink: http://bugs.launchpad.net/bugs/1607404
commit 4fcd1813e6404dd4420c7d12fb483f9320f0bf93 upstream.

Azure server blocks clients that open a socket and don't do anything on it.
In our reconnect scenarios, we can reconnect the tcp session and
detect the socket is available but we defer the negprot and SMB3 session
setup and tree connect reconnection until the next i/o is requested, but
this looks suspicous to some servers who expect SMB3 negprog and session
setup soon after a socket is created.

In the echo thread, reconnect SMB3 sessions and tree connections
that are disconnected.  A later patch will replay persistent (and
resilient) handle opens.

Signed-off-by: Steve French <steve.french@primarydata.com>
Acked-by: Pavel Shilovsky <pshilovsky@samba.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
fs/cifs/connect.c
fs/cifs/smb2pdu.c