aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/fs/cifs/smb2transport.c
diff options
context:
space:
mode:
authorSteve French <stfrench@microsoft.com>2019-02-26 21:26:20 -0600
committerSteve French <stfrench@microsoft.com>2019-03-05 18:10:13 -0600
commit53a3e0d96c708bca1607507ab2470a3c911c8c81 (patch)
treee3616cb3f75465ca70ed9aa04bdb26bc8fd76de5 /fs/cifs/smb2transport.c
parentsmb3: improve dynamic tracing of open and posix mkdir (diff)
downloadwireguard-linux-53a3e0d96c708bca1607507ab2470a3c911c8c81.tar.xz
wireguard-linux-53a3e0d96c708bca1607507ab2470a3c911c8c81.zip
smb3: add dynamic trace point for smb3_cmd_enter
Add tracepoint before sending an SMB3 command on the wire (ie add an smb3_cmd_enter tracepoint). This allows us to look in much more detail at response times (between request and response). Signed-off-by: Steve French <stfrench@microsoft.com> Reviewed-by: Pavel Shilovsky <pshilov@microsoft.com>
Diffstat (limited to 'fs/cifs/smb2transport.c')
-rw-r--r--fs/cifs/smb2transport.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/cifs/smb2transport.c b/fs/cifs/smb2transport.c
index 63264db78b89..fa1fec2e3c8d 100644
--- a/fs/cifs/smb2transport.c
+++ b/fs/cifs/smb2transport.c
@@ -602,6 +602,8 @@ smb2_mid_entry_alloc(const struct smb2_sync_hdr *shdr,
atomic_inc(&midCount);
temp->mid_state = MID_REQUEST_ALLOCATED;
+ trace_smb3_cmd_enter(shdr->TreeId, shdr->SessionId,
+ le16_to_cpu(shdr->Command), temp->mid);
return temp;
}
@@ -636,6 +638,7 @@ smb2_get_mid_entry(struct cifs_ses *ses, struct smb2_sync_hdr *shdr,
spin_lock(&GlobalMid_Lock);
list_add_tail(&(*mid)->qhead, &ses->server->pending_mid_q);
spin_unlock(&GlobalMid_Lock);
+
return 0;
}