From 3e37a49ec072a65cfa76bbb242e125450bdc9676 Mon Sep 17 00:00:00 2001 From: Alex Zhuravlev Date: Mon, 15 Apr 2024 08:38:39 +0300 Subject: [PATCH] LU-17675 tests: flush opencache in sanity-flr/61a flush opencache to update MDS's atime with close RPC Test-Parameters: trivial testlist=sanity-flr clientdistro=el9.3 Signed-off-by: Alex Zhuravlev Change-Id: I5f4d3400b3f772553ee6004ac271a4aa644699e0 Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/54788 Tested-by: jenkins Tested-by: Maloo Reviewed-by: Andreas Dilger Reviewed-by: James Simmons Reviewed-by: Oleg Drokin --- lustre/tests/sanity-flr.sh | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/lustre/tests/sanity-flr.sh b/lustre/tests/sanity-flr.sh index ed0526c..7c51533 100644 --- a/lustre/tests/sanity-flr.sh +++ b/lustre/tests/sanity-flr.sh @@ -28,14 +28,6 @@ if [[ "$ost1_FSTYPE" == "zfs" ]]; then ALWAYS_EXCEPT+=" 49a " fi -if [ -r /etc/redhat-release ]; then - rhel_version=$(cat /etc/redhat-release | - sed -e 's/^[^0-9.]*//g' | sed -e 's/[ ].*//') - if (( $(version_code $rhel_version) >= $(version_code 9.3.0) )); then - always_except LU-17675 61a - fi -fi - build_test_filter [[ "$MDS1_VERSION" -ge $(version_code 2.10.56) ]] || @@ -3200,6 +3192,9 @@ test_61a() { # LU-14508 echo XXXX > $file || error "write $file failed" cp -p $file $file-2 || error "copy $file-2 failed" + # flush opencache to update atime with close rpc + cancel_lru_locks mdc + echo "sleep $nap seconds" sleep $nap -- 1.8.3.1