Whamcloud - gitweb
LU-17146 tests: avoid sanity-lfsck/test_38 failure 37/52537/2
authorBruno Faccini <bruno.faccini@intel.com>
Tue, 26 Sep 2023 09:15:35 +0000 (11:15 +0200)
committerOleg Drokin <green@whamcloud.com>
Wed, 25 Oct 2023 18:08:29 +0000 (18:08 +0000)
This regression has been introduced in kernels after commit
v5.11-10234-gcbd59c48ae2b (5.12), and is fixed with
commit v6.2-rc4-61-g5956592ce337 (6.2).
The issue has been introduced by upstream
commit 8c8387ee3f55
("mm: stop filemap_read() from grabbing a superfluous page").
Skip sanity-lfsck/test_38 for this range of kernels.

Signed-off-by: Bruno Faccini <bruno.faccini@intel.com>
Change-Id: Ic6066e43959c913c2f225d229927803471f06cee
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/52537
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/sanity-lfsck.sh

index 9994cf0..72a66d0 100755 (executable)
@@ -5813,6 +5813,12 @@ test_38()
        [[ "$MDS1_VERSION" -le $(version_code 2.12.51) ]] &&
                skip "Need MDS version newer than 2.12.51"
 
+       # skip basic ops on file with foreign LOV tests on 5.12-6.2 kernels
+       # until the filemap_read() issue is fixed by v6.2-rc4-61-g5956592ce337
+       (( $LINUX_VERSION_CODE < $(version_code 5.12.0) ||
+          $LINUX_VERSION_CODE >= $(version_code 6.2.0) )) ||
+               skip "Need kernel < 5.12.0 or >= 6.2.0 for filemap_read() fix"
+
        test_mkdir $DIR/$tdir
        local uuid1=$(cat /proc/sys/kernel/random/uuid)
        local uuid2=$(cat /proc/sys/kernel/random/uuid)