smb3: display session id in debug data
authorSteve French <stfrench@microsoft.com>
Thu, 9 May 2019 03:41:37 +0000 (22:41 -0500)
committerSteve French <stfrench@microsoft.com>
Thu, 9 May 2019 18:15:39 +0000 (13:15 -0500)
Displaying the session id in /proc/fs/cifs/DebugData
is needed in order to correlate Linux client information
with network and server traces for many common support
scenarios.  Turned out to be very important for debugging.

Signed-off-by: Steve French <stfrench@microsoft.com>
CC: Stable <stable@vger.kernel.org>
Reviewed-by: Pavel Shilovsky <pshilov@microsoft.com>
fs/cifs/cifs_debug.c

index 6a69f11aacf76b0825bddd0f25485b6f5f2189da..45e74da40f3a5c52e9fb7e0d6b2135acf3e703fd 100644 (file)
@@ -380,6 +380,8 @@ skip_rdma:
                                atomic_read(&server->in_send),
                                atomic_read(&server->num_waiters));
 #endif
+                       /* dump session id helpful for use with network trace */
+                       seq_printf(m, " SessionId: 0x%llx", ses->Suid);
                        if (ses->session_flags & SMB2_SESSION_FLAG_ENCRYPT_DATA)
                                seq_puts(m, " encrypted");
                        if (ses->sign)