Call echo service immediately after socket reconnect
authorSachin Prabhu <sprabhu@redhat.com>
Thu, 20 Oct 2016 23:52:24 +0000 (19:52 -0400)
committerSteve French <smfrench@gmail.com>
Tue, 29 Nov 2016 05:08:52 +0000 (23:08 -0600)
commitb8c600120fc87d53642476f48c8055b38d6e14c7
treedf69c21ce8f1522b6881bcd5fd7ac2b0fd2d523d
parent5f4b55699aaff1028468e3f53853d781cdafedd6
Call echo service immediately after socket reconnect

Commit 4fcd1813e640 ("Fix reconnect to not defer smb3 session reconnect
long after socket reconnect") changes the behaviour of the SMB2 echo
service and causes it to renegotiate after a socket reconnect. However
under default settings, the echo service could take up to 120 seconds to
be scheduled.

The patch forces the echo service to be called immediately resulting a
negotiate call being made immediately on reconnect.

Signed-off-by: Sachin Prabhu <sprabhu@redhat.com>
Reviewed-by: Pavel Shilovsky <pshilov@microsoft.com>
Signed-off-by: Steve French <smfrench@gmail.com>
fs/cifs/connect.c