Whamcloud - gitweb
LU-16608 tests: Reduce lock count in 255c 74/50174/2
authorPatrick Farrell <pfarrell@whamcloud.com>
Wed, 1 Mar 2023 21:05:02 +0000 (16:05 -0500)
committerOleg Drokin <green@whamcloud.com>
Tue, 11 Apr 2023 20:08:56 +0000 (20:08 +0000)
Similar to LU-10443/LU-10136, test 255c is failing due to
lock reclamation during the test, this time on GK testing.

Reducing the lock count in the test from 500 to 100 should
dramatically reduce the frequency of failures, and is
still a good test.

Test-parameters: trivial testlist=sanity env=ONLY=255c,ONLY_REPEAT=100
Signed-off-by: Patrick Farrell <pfarrell@whamcloud.com>
Change-Id: I47c9a60c8425b73c53093bae34995c08c8278f2b
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/50174
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Alex Deiter <alex.deiter@gmail.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/tests/lockahead_test.c

index 7fd180e..f3b8e51 100644 (file)
@@ -429,7 +429,7 @@ static int test15(void)
 
        advice = malloc(sizeof(struct llapi_lu_ladvise)*count);
 
-       for (i = 0; i < 500; i++) {
+       for (i = 0; i < 100; i++) {
                /* The 'UL' designators are required to avoid undefined
                 * behavior which GCC turns in to an infinite loop */
                __u64 start = i * 1024UL * 1024UL * 10UL;