From: Alexander Aring Date: Thu, 12 Jan 2023 22:18:46 +0000 (-0500) Subject: fs: dlm: reduce the shutdown timeout to 5 secs X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=11605353f27c23902b6fb993a57bd2f0baaff3b6;p=linux.git fs: dlm: reduce the shutdown timeout to 5 secs 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 Signed-off-by: David Teigland --- diff --git a/fs/dlm/midcomms.c b/fs/dlm/midcomms.c index cf91a5a11b4f5..44e29f99de4ee 100644 --- a/fs/dlm/midcomms.c +++ b/fs/dlm/midcomms.c @@ -146,8 +146,8 @@ /* 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 {