fs: dlm: reduce the shutdown timeout to 5 secs
authorAlexander Aring <aahringo@redhat.com>
Thu, 12 Jan 2023 22:18:46 +0000 (17:18 -0500)
committerDavid Teigland <teigland@redhat.com>
Mon, 23 Jan 2023 22:27:20 +0000 (16:27 -0600)
When a shutdown is stuck, time out after 5 seconds instead of
3 minutes.  After this timeout we try a forced shutdown.

Signed-off-by: Alexander Aring <aahringo@redhat.com>
Signed-off-by: David Teigland <teigland@redhat.com>
fs/dlm/midcomms.c

index cf91a5a11b4f5e6e1a441a6c5d7bf9e72edfce29..44e29f99de4eed2bcd8580544c056df5949e6d1c 100644 (file)
 
 /* init value for sequence numbers for testing purpose only e.g. overflows */
 #define DLM_SEQ_INIT           0
-/* 3 minutes wait to sync ending of dlm */
-#define DLM_SHUTDOWN_TIMEOUT   msecs_to_jiffies(3 * 60 * 1000)
+/* 5 seconds wait to sync ending of dlm */
+#define DLM_SHUTDOWN_TIMEOUT   msecs_to_jiffies(5000)
 #define DLM_VERSION_NOT_SET    0
 
 struct midcomms_node {