From: ericm Date: Thu, 15 Jan 2004 10:26:23 +0000 (+0000) Subject: merge from HEAD: 20030115 X-Git-Tag: v1_7_70~2^33~45 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=63d43ef1e290fc6d90e0fec5cdaceed067a05548;p=fs%2Flustre-release.git merge from HEAD: 20030115 --- diff --git a/lustre/tests/lockorder.sh b/lustre/tests/lockorder.sh index 34fa695..cf5051b 100644 --- a/lustre/tests/lockorder.sh +++ b/lustre/tests/lockorder.sh @@ -74,4 +74,4 @@ trap 0 kill $CR_PID || true kill $ST_PID || true -#rm -r $PDIR +rm -rf $LOCKDIR diff --git a/lustre/tests/recovery-small.sh b/lustre/tests/recovery-small.sh index 3b737e7..d5dae90 100755 --- a/lustre/tests/recovery-small.sh +++ b/lustre/tests/recovery-small.sh @@ -3,14 +3,13 @@ set -e LUSTRE=${LUSTRE:-`dirname $0`/..} +UPCALL=${UPCALL:-$PWD/recovery-small-upcall.sh} . $LUSTRE/tests/test-framework.sh init_test_env $@ . ${CONFIG:=$LUSTRE/tests/cfg/local.sh} -. $LUSTRE/tests/test-framework.sh - build_test_filter @@ -135,6 +134,47 @@ test_10() { do_facet client checkstat -v -p 0777 $MOUNT/f10 || return 3 do_facet client "munlink $MOUNT/f10" } -run_test 10 "finish request after client eviction (bug 1521)" +run_test 10 "finish request on server after client eviction (bug 1521)" + +#bug 2460 +# wake up a thead waiting for completion after eviction +test_11(){ + do_facet client multiop $MOUNT/$tfile Ow || return 1 + do_facet client multiop $MOUNT/$tfile or || return 2 + + cancel_lru_locks OSC + + do_facet client multiop $MOUNT/$tfile or || return 3 + drop_bl_callback multiop $MOUNT/$tfile Ow || + echo "client evicted, as expected" + + do_facet client munlink $MOUNT/$tfile || return 4 +} +run_test 11 "wake up a thead waiting for completion after eviction (b=2460)" + +clear_failloc() { + facet=$1 + pause=$2 + sleep $pause + echo "clearing fail_loc on $facet" + do_facet $facet "sysctl -w lustre.fail_loc=0" +} + +#b=2494 +test_12(){ + $LCTL mark multiop $MOUNT/$tfile OS_c + multiop $MOUNT/$tfile OS_c & + PID=$! +#define OBD_FAIL_MDS_CLOSE_NET 0x115 + DDPID=$! + do_facet mds "sysctl -w lustre.fail_loc=0x115" + clear_failloc mds $((TIMEOUT * 2)) & + kill -USR1 $PID + echo "waiting for multiop $PID" + wait $PID || return 2 + do_facet client munlink $MOUNT/$tfile || return 3 +} +run_test 12 "recover from timed out resend in ptlrpcd (b=2494)" $CLEANUP +