From: Hongchao Zhang Date: Tue, 9 Apr 2013 18:16:44 +0000 (+0800) Subject: LU-3073 test: cancel lru locks for OSC X-Git-Tag: 2.3.65~91 X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=commitdiff_plain;h=e252c795320ddee5951322c0f991f39142e2ca17 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 --- 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}'`