summaryrefslogtreecommitdiffstats
path: root/fs/cifs/cifsfs.c
diff options
context:
space:
mode:
authorSteve French2015-12-18 19:31:36 +0100
committerSteve French2016-01-14 20:39:15 +0100
commitadfeb3e00e8e1b9fb4ad19eb7367e7c272d16003 (patch)
treebcef0a8563f7e4d6e541e070458c1672ebd4bc37 /fs/cifs/cifsfs.c
parentcifs: Check uniqueid for SMB2+ and return -ESTALE if necessary (diff)
downloadkernel-qcow2-linux-adfeb3e00e8e1b9fb4ad19eb7367e7c272d16003.tar.gz
kernel-qcow2-linux-adfeb3e00e8e1b9fb4ad19eb7367e7c272d16003.tar.xz
kernel-qcow2-linux-adfeb3e00e8e1b9fb4ad19eb7367e7c272d16003.zip
cifs: Make echo interval tunable
Currently the echo interval is set to 60 seconds using a macro. This setting determines the interval at which echo requests are sent to the server on an idling connection. This setting also affects the time required for a connection to an unresponsive server to timeout. Making this setting a tunable allows users to control the echo interval times as well as control the time after which the connecting to an unresponsive server times out. To set echo interval, pass the echo_interval=n mount option. Version four of the patch. v2: Change MIN and MAX timeout values v3: Remove incorrect comment in cifs_get_tcp_session v4: Fix bug in setting echo_intervalw Signed-off-by: Sachin Prabhu <sprabhu@redhat.com> Acked-by: Shirish Pargaonkar <shirishpargaonkar@gmail.com>
Diffstat (limited to 'fs/cifs/cifsfs.c')
-rw-r--r--fs/cifs/cifsfs.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/cifs/cifsfs.c b/fs/cifs/cifsfs.c
index b7fcb3151103..53e343d073bb 100644
--- a/fs/cifs/cifsfs.c
+++ b/fs/cifs/cifsfs.c
@@ -507,6 +507,8 @@ cifs_show_options(struct seq_file *s, struct dentry *root)
seq_printf(s, ",rsize=%u", cifs_sb->rsize);
seq_printf(s, ",wsize=%u", cifs_sb->wsize);
+ seq_printf(s, ",echo_interval=%lu",
+ tcon->ses->server->echo_interval / HZ);
/* convert actimeo and display it in seconds */
seq_printf(s, ",actimeo=%lu", cifs_sb->actimeo / HZ);