From: Alexander Aring Date: Thu, 12 Jan 2023 17:18:46 -0500 Subject: [Cluster-devel] [PATCH dlm/next 5/8] fs: dlm: reduce the timeout time to 5 secs In-Reply-To: <20230112221849.1883104-1-aahringo@redhat.com> References: <20230112221849.1883104-1-aahringo@redhat.com> Message-ID: <20230112221849.1883104-6-aahringo@redhat.com> List-Id: To: cluster-devel.redhat.com MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit 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 --- 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