Whamcloud - gitweb
LU-17675 tests: flush opencache in sanity-flr/61a 61/55461/2
authorAlex Zhuravlev <bzzz@whamcloud.com>
Mon, 15 Apr 2024 05:38:39 +0000 (08:38 +0300)
committerOleg Drokin <green@whamcloud.com>
Thu, 20 Jun 2024 21:38:55 +0000 (21:38 +0000)
flush opencache to update MDS's atime with close RPC

Lustre-change: https://review.whamcloud.com/54788
Lustre-commit: 3e37a49ec072a65cfa76bbb242e125450bdc9676

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

index eab11e7..a947038 100644 (file)
@@ -2922,6 +2922,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