diff options
author | Steve French <stfrench@microsoft.com> | 2018-09-22 11:25:04 -0500 |
---|---|---|
committer | Steve French <stfrench@microsoft.com> | 2018-10-23 21:16:05 -0500 |
commit | 6e4d3bbe92120f8482d31e4138e5fc2983caec3e (patch) | |
tree | 86cccc9afb46b63c44102bf2790db8d6c715589f /fs/cifs/smb2ops.c | |
parent | 8393072bab060f0a05888ee31543175d44b5dde0 (diff) | |
download | linux-stable-6e4d3bbe92120f8482d31e4138e5fc2983caec3e.tar.gz linux-stable-6e4d3bbe92120f8482d31e4138e5fc2983caec3e.tar.bz2 linux-stable-6e4d3bbe92120f8482d31e4138e5fc2983caec3e.zip |
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>
Diffstat (limited to 'fs/cifs/smb2ops.c')
-rw-r--r-- | fs/cifs/smb2ops.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/cifs/smb2ops.c b/fs/cifs/smb2ops.c index 41342a8dc53e..c599fc6acba6 100644 --- a/fs/cifs/smb2ops.c +++ b/fs/cifs/smb2ops.c @@ -113,6 +113,9 @@ smb2_set_credits(struct TCP_Server_Info *server, const int val) if (val == 1) server->reconnect_instance++; spin_unlock(&server->req_lock); + /* don't log while holding the lock */ + if (val == 1) + cifs_dbg(FYI, "set credits to 1 due to smb2 reconnect\n"); } static int * |