From e4bb910bba91199af21199080c5f3eb1070c59c9 Mon Sep 17 00:00:00 2001 From: Andreas Dilger Date: Wed, 13 Oct 2021 14:34:14 -0600 Subject: [PATCH] LU-13997 tests: fix sanity test_418 lock cancellation Use "do_nodes" directly to cancel DLM locks, rather than "do_rpc_nodes", since that is very heavy to use in a loop (each call takes 3s, but the loop delay is only 0.2s). Test-Parameters: trivial Signed-off-by: Andreas Dilger Change-Id: I83d989688ce671f0ff9c62ebdf3144746a3ebbe5 --- lustre/tests/sanity.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lustre/tests/sanity.sh b/lustre/tests/sanity.sh index 5c88214..329c7fe 100755 --- a/lustre/tests/sanity.sh +++ b/lustre/tests/sanity.sh @@ -25357,7 +25357,8 @@ check_lfs_df() { [ "$1" == "blocks" ] && inodes= || inodes="-i" for count in {1..100}; do - do_rpc_nodes "$CLIENTS" cancel_lru_locks + do_nodes "$CLIENTS" \ + $LCTL set_param ldlm.namespaces.*.lru_size=clear sync; sleep 0.2 # read the lines of interest -- 1.8.3.1