]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - fs/cifs/smb2pdu.c
SMB3: Log at least once if tree connect fails during reconnect
[linux.git] / fs / cifs / smb2pdu.c
index e5ac474d5d87c073419610714a1a94a3e48ef781..6c2910e6c984ebd4ccf707a87d3b86ae51a32d47 100644 (file)
@@ -268,8 +268,11 @@ smb2_reconnect(__le16 smb2_command, struct cifs_tcon *tcon)
        mutex_unlock(&tcon->ses->session_mutex);
 
        cifs_dbg(FYI, "reconnect tcon rc = %d\n", rc);
-       if (rc)
+       if (rc) {
+               /* If sess reconnected but tcon didn't, something strange ... */
+               printk_once(KERN_WARNING "reconnect tcon failed rc = %d\n", rc);
                goto out;
+       }
 
        if (smb2_command != SMB2_INTERNAL_CMD)
                queue_delayed_work(cifsiod_wq, &server->reconnect, 0);