]> git.baikalelectronics.ru Git - kernel.git/commit
smb3: add tracepoint for slow responses
authorSteve French <stfrench@microsoft.com>
Wed, 1 Aug 2018 21:38:07 +0000 (16:38 -0500)
committerSteve French <stfrench@microsoft.com>
Tue, 7 Aug 2018 19:28:01 +0000 (14:28 -0500)
commite385eac12e9ddeb65c9bf477daba369be05f74f5
tree9d32f5f44706a3d54991eaaa2b0c5b9f81fd13bb
parentbfb338d35a7a4b7c676250079bb95803d00d34a6
smb3: add tracepoint for slow responses

If responses take longer than one second from the server,
we can optionally log them to dmesg in current cifs.ko code
(CONFIG_CIFS_STATS2 must be configured and a
/proc/fs/cifs/cifsFYI flag must be set), but can be more useful
to log these via ftrace (tracepoint is smb3_slow_rsp) which
is easier and more granular (still requires CONFIG_CIFS_STATS2
to be configured in the build though).

Signed-off-by: Steve French <stfrench@microsoft.com>
Reviewed-by: Pavel Shilovsky <pshilov@microsoft.com>
fs/cifs/trace.h
fs/cifs/transport.c