When a shutdown stucks for any reason we switch to a 5 secs timeout
instead of getting stucked for a long time and even HUNG_TASK reports
about stucking into the wait_event_timeout() handling. In 5 secs it
should already be done in most of all cases, if not we timeout and try
to force a shutdown.

Signed-off-by: Alexander Aring <aahri...@redhat.com>
---
 fs/dlm/midcomms.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fs/dlm/midcomms.c b/fs/dlm/midcomms.c
index cf91a5a11b4f..3932c7cf0e7a 100644
--- a/fs/dlm/midcomms.c
+++ b/fs/dlm/midcomms.c
@@ -147,7 +147,7 @@
 /* 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)
+#define DLM_SHUTDOWN_TIMEOUT   msecs_to_jiffies(5000)
 #define DLM_VERSION_NOT_SET    0
 
 struct midcomms_node {
-- 
2.31.1

Reply via email to