Skip to contentSkip to conversation

generic/089: increase the lock timeout to 120s

PATCH In review Jeff Layton 2 participants 2 messages Jan 26, 2024 – Feb 2, 2024

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 generic/089: increase the lock timeout to 120s

On NFS, this test can take a long time. There is enough contention for the lock that it can take more than 10s (or even 60s) to acquire it.

Bump this value up to 120s, which seems to be long enough for testing with kdevops.

---
 src/t_mtab.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
src/t_mtab.c +1 -1
index c0640a1951a4..4b3b26c86d02 100644
@@ -16,7 +16,7 @@
 #include <mntent.h>
 #include <limits.h>
 
-#define LOCK_TIMEOUT	10
+#define LOCK_TIMEOUT	120
 #define _(x)		(x)
 
 static char *mounted = "t_mtab";
Signature · 1 line
2.43.0
Reviewed-by on v1 1/1
#1 lore raw
Quoted 8 lines · Jeff Layton

On NFS, this test can take a long time. There is enough contention for the lock that it can take more than 10s (or even 60s) to acquire it.

Bump this value up to 120s, which seems to be long enough for testing with kdevops.

---

Good to me,

Quoted 20 lines
 src/t_mtab.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
src/t_mtab.c +1 -1
index c0640a1951a4..4b3b26c86d02 100644
@@ -16,7 +16,7 @@
 #include <mntent.h>
 #include <limits.h>
 
-#define LOCK_TIMEOUT	10
+#define LOCK_TIMEOUT	120
 #define _(x)		(x)
 
 static char *mounted = "t_mtab";
Signature · 1 line
2.43.0