Skip to content

Commit 6e4d3bb

Browse files
author
Steve French
committed
smb3: Add debug message later in smb2/smb3 reconnect path
As we reset credits later in the reconnect path, useful to have optional (cifsFYI) debug message. Signed-off-by: Steve French <stfrench@microsoft.com> Reviewed-by: Pavel Shilovsky <pshilov@microsoft.com>
1 parent 8393072 commit 6e4d3bb

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

fs/cifs/connect.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,7 @@ cifs_reconnect(struct TCP_Server_Info *server)
347347
server->maxBuf = 0;
348348
server->max_read = 0;
349349

350-
cifs_dbg(FYI, "Reconnecting tcp session\n");
350+
cifs_dbg(FYI, "Mark tcp session as need reconnect\n");
351351
trace_smb3_reconnect(server->CurrentMid, server->hostname);
352352

353353
/* before reconnecting the tcp session, mark the smb session (uid)

fs/cifs/smb2ops.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,9 @@ smb2_set_credits(struct TCP_Server_Info *server, const int val)
113113
if (val == 1)
114114
server->reconnect_instance++;
115115
spin_unlock(&server->req_lock);
116+
/* don't log while holding the lock */
117+
if (val == 1)
118+
cifs_dbg(FYI, "set credits to 1 due to smb2 reconnect\n");
116119
}
117120

118121
static int *

0 commit comments

Comments
 (0)