From 8ecbd1b5085fac6463889146290ef56df2710eeb Mon Sep 17 00:00:00 2001 From: Bruno Faccini Date: Tue, 26 Sep 2023 11:15:35 +0200 Subject: [PATCH] LU-17146 tests: avoid sanity-lfsck/test_38 failure 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 Change-Id: Ic6066e43959c913c2f225d229927803471f06cee Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/52537 Tested-by: jenkins Tested-by: Maloo Reviewed-by: Andreas Dilger Reviewed-by: Alex Deiter Reviewed-by: Oleg Drokin --- lustre/tests/sanity-lfsck.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lustre/tests/sanity-lfsck.sh b/lustre/tests/sanity-lfsck.sh index 9994cf0..72a66d0 100755 --- a/lustre/tests/sanity-lfsck.sh +++ b/lustre/tests/sanity-lfsck.sh @@ -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) -- 1.8.3.1