cifs: reduce echo interval to reduce connection timeout
authorGrazvydas Ignotas <notasas@gmail.com>
Mon, 16 Feb 2015 02:29:35 +0000 (04:29 +0200)
committerGrazvydas Ignotas <notasas@gmail.com>
Fri, 20 Feb 2015 22:05:32 +0000 (00:05 +0200)
This reduces stale cifs timeout on shutdown from 5 minutes to 30s

fs/cifs/connect.c

index 49d6e21..b7b8ef4 100644 (file)
@@ -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;