@@ -129,7 +129,7 @@ static int
cifs_reconnect_tcon(struct cifs_tcon *tcon, int smb_command)
{
struct cifs_tcon_reconnect_params params = {
- .skip_reconnect = false,
+ .start_timer = true,
};
/*
@@ -662,6 +662,12 @@ CIFSSMBEcho(struct TCP_Server_Info *server)
cifs_dbg(FYI, "In echo request\n");
+ if (server->tcpStatus == CifsNeedNegotiate) {
+ /* No need to send echo on newly established connections */
+ mod_delayed_work(cifsiod_wq, &server->reconnect, 0);
+ return rc;
+ }
+
rc = small_smb_init(SMB_COM_ECHO, 0, NULL, (void **)&smb);
if (rc)
return rc;
Signed-off-by: Stefan Metzmacher <metze@samba.org> --- fs/cifs/cifssmb.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-)