diff options
author | Steve French <stfrench@microsoft.com> | 2018-07-30 14:23:58 -0500 |
---|---|---|
committer | Steve French <stfrench@microsoft.com> | 2018-08-07 14:15:57 -0500 |
commit | e68a932b0b8e38eaa2111fc3aab31ff66988f1c4 (patch) | |
tree | 34f8d99755bc1121eebbdda32fae1af5ec51a071 /fs/cifs/smb2ops.c | |
parent | 06188fcf9c068a2a8e82ad1e2510a008373150e2 (diff) | |
download | linux-stable-e68a932b0b8e38eaa2111fc3aab31ff66988f1c4.tar.gz linux-stable-e68a932b0b8e38eaa2111fc3aab31ff66988f1c4.tar.bz2 linux-stable-e68a932b0b8e38eaa2111fc3aab31ff66988f1c4.zip |
smb3: add tracepoint for session expired or deleted
In debugging reconnection problems, want to be able to more easily
trace cases in which the server has marked the SMB3 session
expired or deleted (to distinguish from timeout cases).
Signed-off-by: Steve French <stfrench@microsoft.com>
Reviewed-by: Ronnie Sahlberg <lsahlber@redhat.com>
Diffstat (limited to 'fs/cifs/smb2ops.c')
-rw-r--r-- | fs/cifs/smb2ops.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/fs/cifs/smb2ops.c b/fs/cifs/smb2ops.c index dad6dc763200..314556c083f3 100644 --- a/fs/cifs/smb2ops.c +++ b/fs/cifs/smb2ops.c @@ -1483,7 +1483,11 @@ smb2_is_session_expired(char *buf) shdr->Status != STATUS_USER_SESSION_DELETED) return false; + trace_smb3_ses_expired(shdr->TreeId, shdr->SessionId, + le16_to_cpu(shdr->Command), + le64_to_cpu(shdr->MessageId)); cifs_dbg(FYI, "Session expired or deleted\n"); + return true; } |