]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commitdiff
src/t_mtab.c: increase the lock timeout to 120s
authorJeff Layton <jlayton@kernel.org>
Fri, 26 Jan 2024 20:15:50 +0000 (15:15 -0500)
committerZorro Lang <zlang@kernel.org>
Fri, 9 Feb 2024 05:27:17 +0000 (13:27 +0800)
On NFS, generic/089 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.

Signed-off-by: Jeff Layton <jlayton@kernel.org>
Reviewed-by: Zorro Lang <zlang@redhat.com>
Signed-off-by: Zorro Lang <zlang@kernel.org>
src/t_mtab.c

index c0640a1951a4ceb0f9e36755ccc3c6c9df4c7443..4b3b26c86d02ec72fd84b9326a67364468c381cc 100644 (file)
@@ -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";