Whamcloud - gitweb
LU-17146 tests: avoid sanity-lfsck/test_38 failure 25/55425/3
authorBruno Faccini <bruno.faccini@intel.com>
Tue, 26 Sep 2023 09:15:35 +0000 (11:15 +0200)
committerOleg Drokin <green@whamcloud.com>
Sun, 16 Jun 2024 03:36:31 +0000 (03:36 +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.

Lustre-change: https://review.whamcloud.com/52537
Lustre-commit: 8ecbd1b5085fac6463889146290ef56df2710eeb

Test-Parameters: trivial testlist=sanity-lfsck
Signed-off-by: Bruno Faccini <bruno.faccini@intel.com>
Change-Id: Ic6066e43959c913c2f225d229927803471f06cee
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Alex Deiter <alex.deiter@gmail.com>
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/55425
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Lai Siyao <lai.siyao@whamcloud.com>
Reviewed-by: Bruno Faccini <bfaccini@nvidia.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/tests/sanity-lfsck.sh

index 116e872..181ba01 100644 (file)
@@ -5809,6 +5809,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)