smb3: add way to control slow response threshold for logging and stats
authorSteve French <stfrench@microsoft.com>
Tue, 18 Sep 2018 19:05:18 +0000 (14:05 -0500)
committerSteve French <stfrench@microsoft.com>
Wed, 24 Oct 2018 02:16:04 +0000 (21:16 -0500)
commit00778e2294d560361e2ed4e94cc003351a2d82d9
treef0f9f7b0c1ea14705eb2fc183a6c053e553da8a3
parent1c3a13a38a28c6ed84ff9220c1b8dadf5fbcf8a5
smb3: add way to control slow response threshold for logging and stats

/proc/fs/cifs/Stats when CONFIG_CIFS_STATS2 is enabled logs 'slow'
responses, but depending on the server you are debugging a
one second timeout may be too fast, so allow setting it to
a larger number of seconds via new module parameter

/sys/module/cifs/parameters/slow_rsp_threshold

or via modprobe:

slow_rsp_threshold:Amount of time (in seconds) to wait before
logging that a response is delayed.
Default: 1 (if set to 0 disables msg). (uint)

Recommended values are 0 (disabled) to 32767 (9 hours) with
the default remaining as 1 second.

Signed-off-by: Steve French <stfrench@microsoft.com>
Reviewed-by: Aurelien Aptel <aaptel@suse.com>
fs/cifs/cifsfs.c
fs/cifs/cifsglob.h
fs/cifs/transport.c