From e252c795320ddee5951322c0f991f39142e2ca17 Mon Sep 17 00:00:00 2001 From: Hongchao Zhang Date: Wed, 10 Apr 2013 02:16:44 +0800 Subject: [PATCH] LU-3073 test: cancel lru locks for OSC in test_120a of sanity.sh, the locks in LRU of OSC should also be cancelled for the asynchronous object destroy at MDT could cause blocking AST sent to client. Change-Id: Ibb619e2a93f8c70f41f6514149d06a12c4b5aa4e Signed-off-by: Hongchao Zhang Reviewed-on: http://review.whamcloud.com/6088 Tested-by: Hudson Reviewed-by: Fan Yong Reviewed-by: Jian Yu Tested-by: Maloo Reviewed-by: Oleg Drokin --- lustre/tests/sanity.sh | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/lustre/tests/sanity.sh b/lustre/tests/sanity.sh index 8fa2bf4..ee5ec39 100644 --- a/lustre/tests/sanity.sh +++ b/lustre/tests/sanity.sh @@ -7106,9 +7106,13 @@ test_120a() { test_mkdir -p $DIR/$tdir [ -z "`lctl get_param -n mdc.*.connect_flags | grep early_lock_cancel`" ] && \ skip "no early lock cancel on server" && return 0 - lru_resize_disable mdc - lru_resize_disable osc - cancel_lru_locks mdc + + lru_resize_disable mdc + lru_resize_disable osc + cancel_lru_locks mdc + # asynchronous object destroy at MDT could cause bl ast to client + cancel_lru_locks osc + stat $DIR/$tdir > /dev/null can1=`lctl get_param -n ldlm.services.ldlm_canceld.stats | awk '/ldlm_cancel/ {print $2}'` blk1=`lctl get_param -n ldlm.services.ldlm_cbd.stats | awk '/ldlm_bl_callback/ {print $2}'` -- 1.8.3.1