Whamcloud - gitweb
LU-16101 tests: add sanity/27J to always_except
authorJian Yu <yujian@whamcloud.com>
Sun, 12 Feb 2023 08:02:08 +0000 (00:02 -0800)
committerAndreas Dilger <adilger@whamcloud.com>
Mon, 13 Feb 2023 16:57:10 +0000 (16:57 +0000)
This patch adds sanity/27J to always_except for SLES15 SP4
and 5.16.0+ kernels before the issue introduced by upstream
commit 8c8387ee3f55
("mm: stop filemap_read() from grabbing a superfluous page")
is resolved.

Lustre-change: https://review.whamcloud.com/49970
Lustre-commit: TBD (from a537ec478649579ab66866bae85083c68c82e96b)

Test-Parameters: trivial clientdistro=sles15sp4 testlist=sanity

Signed-off-by: Jian Yu <yujian@whamcloud.com>
Change-Id: Iafde656530fcdc1de9265aacaa9266435c9d5c47
Reviewed-on: https://review.whamcloud.com/c/ex/lustre-release/+/49972
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Xing Huang <hxing@ddn.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
lustre/tests/sanity.sh

index ce616f1..23c502c 100755 (executable)
@@ -69,6 +69,12 @@ if (( $LINUX_VERSION_CODE >= $(version_code 4.18.0) &&
        always_except LU-13063 411
 fi
 
+# skip basic ops on file with foreign LOV tests on 5.16.0+ kernels
+# until the filemap_read() issue is fixed
+if (( $LINUX_VERSION_CODE >= $(version_code 5.16.0) )); then
+       always_except LU-16101 27J
+fi
+
 #                                  5              12     8   12  15   (min)"
 [ "$SLOW" = "no" ] && EXCEPT_SLOW="27m 60i 64b 68 71 115 135 136 230d 300o"
 
@@ -96,13 +102,16 @@ sles_version_code()
 
 # Check if we are running on Ubuntu or SLES so we can make decisions on
 # what tests to run
-if [ -r /etc/SuSE-release ]; then
+if [ -r /etc/SuSE-release ] || [ -r /etc/SUSE-brand ]; then
        sles_version=$(sles_version_code)
        [ $sles_version -lt $(version_code 11.4.0) ] &&
                always_except LU-4341 170
 
        [ $sles_version -lt $(version_code 12.0.0) ] &&
                always_except LU-3703 234
+
+       [ $sles_version -ge $(version_code 15.4.0) ] &&
+               always_except LU-16101 27J
 elif [ -r /etc/os-release ]; then
        if grep -qi ubuntu /etc/os-release; then
                ubuntu_version=$(version_code $(sed -n -e 's/"//g' \