From 599befb4d40b6017554f13fc6bd643c12a5f5c83 Mon Sep 17 00:00:00 2001 From: Grazvydas Ignotas Date: Mon, 16 Feb 2015 04:29:35 +0200 Subject: [PATCH] cifs: reduce echo interval to reduce connection timeout This reduces stale cifs timeout on shutdown from 5 minutes to 30s --- fs/cifs/connect.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/cifs/connect.c b/fs/cifs/connect.c index 49d6e21052c2..b7b8ef4248c2 100644 --- a/fs/cifs/connect.c +++ b/fs/cifs/connect.c @@ -54,7 +54,7 @@ #define RFC1001_PORT 139 /* SMB echo "timeout" -- FIXME: tunable? */ -#define SMB_ECHO_INTERVAL (60 * HZ) +#define SMB_ECHO_INTERVAL (6 * HZ) extern mempool_t *cifs_req_poolp; -- 2.39.2