Skip to content
Snippets Groups Projects
Commit bb7c25f9 authored by Elena Gryaznova's avatar Elena Gryaznova
Browse files

b=16313

i=Yury.Umanets
cancel_lru_locks fix
parent 56d0b9f3
No related merge requests found
...@@ -1412,8 +1412,10 @@ set_nodes_failloc () { ...@@ -1412,8 +1412,10 @@ set_nodes_failloc () {
cancel_lru_locks() { cancel_lru_locks() {
$LCTL mark "cancel_lru_locks $1 start" $LCTL mark "cancel_lru_locks $1 start"
lctl set_param ldlm.namespaces.*$1*.lru_size=0 for d in `lctl get_param -N ldlm.namespaces.*.lru_size | egrep -i $1`; do
lctl get_param ldlm.namespaces.*$1*.lock_unused_count | grep -v '=0' $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" $LCTL mark "cancel_lru_locks $1 stop"
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment