summaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorSteve French2019-05-09 05:41:37 +0200
committerSteve French2019-05-09 20:15:39 +0200
commitb63a9de02d64ecd5ff0749e90253f5b30ba5b9c0 (patch)
tree58103da88cf352f140e68b66b53d8c6479129118 /fs
parentMerge tag '5.2-smb3' of git://git.samba.org/sfrench/cifs-2.6 (diff)
downloadkernel-qcow2-linux-b63a9de02d64ecd5ff0749e90253f5b30ba5b9c0.tar.gz
kernel-qcow2-linux-b63a9de02d64ecd5ff0749e90253f5b30ba5b9c0.tar.xz
kernel-qcow2-linux-b63a9de02d64ecd5ff0749e90253f5b30ba5b9c0.zip
smb3: display session id in debug data
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>
Diffstat (limited to 'fs')
-rw-r--r--fs/cifs/cifs_debug.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/cifs/cifs_debug.c b/fs/cifs/cifs_debug.c
index 6a69f11aacf7..45e74da40f3a 100644
--- a/fs/cifs/cifs_debug.c
+++ b/fs/cifs/cifs_debug.c
@@ -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)