Whamcloud - gitweb
b=16313
authorgrev <grev>
Tue, 12 Aug 2008 12:13:09 +0000 (12:13 +0000)
committergrev <grev>
Tue, 12 Aug 2008 12:13:09 +0000 (12:13 +0000)
i=Yury.Umanets
cancel_lru_locks fix

lustre/tests/test-framework.sh

index 2c4518c..49054f6 100644 (file)
@@ -1412,8 +1412,10 @@ set_nodes_failloc () {
 
 cancel_lru_locks() {
     $LCTL mark "cancel_lru_locks $1 start"
-    lctl set_param ldlm.namespaces.*$1*.lru_size=0
-    lctl get_param ldlm.namespaces.*$1*.lock_unused_count | grep -v '=0'
+    for d in `lctl get_param -N ldlm.namespaces.*.lru_size | egrep -i $1`; do
+        $LCTL set_param -n $d=clear
+    done
+    $LCTL get_param ldlm.namespaces.*.lock_unused_count | egrep -i $1 | grep -v '=0'
     $LCTL mark "cancel_lru_locks $1 stop"
 }