Whamcloud - gitweb
LU-17675 tests: flush opencache in sanity-flr/61a 88/54788/5
authorAlex Zhuravlev <bzzz@whamcloud.com>
Mon, 15 Apr 2024 05:38:39 +0000 (08:38 +0300)
committerOleg Drokin <green@whamcloud.com>
Mon, 10 Jun 2024 06:09:11 +0000 (06:09 +0000)
flush opencache to update MDS's atime with close RPC

Test-Parameters: trivial testlist=sanity-flr clientdistro=el9.3
Signed-off-by: Alex Zhuravlev <bzzz@whamcloud.com>
Change-Id: I5f4d3400b3f772553ee6004ac271a4aa644699e0
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/54788
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: James Simmons <jsimmons@infradead.org>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/tests/sanity-flr.sh

index ed0526c..7c51533 100644 (file)
@@ -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