From 143450680d3b1b557aa14a39eeb95015c28fe4a6 Mon Sep 17 00:00:00 2001 From: Alex Zhuravlev Date: Tue, 10 Apr 2012 17:06:22 +0400 Subject: [PATCH] LU-1943 tests: async IO is enough for sanity/80 Port of ORI-620 to the master it can be hard to write 1MB in a second for some backends (like ZFS), so relax current synchronous semantics as this doesn't affect the logic. Signed-off-by: Alex Zhuravlev Signed-off-by: Mikhail Pershin Change-Id: Ie87815de4a2ae51fc166287d74d43278101fe76b Reviewed-on: http://review.whamcloud.com/4212 Tested-by: Hudson Tested-by: Maloo Reviewed-by: Andreas Dilger Reviewed-by: Oleg Drokin --- lustre/tests/sanity.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/lustre/tests/sanity.sh b/lustre/tests/sanity.sh index abc24b3d..dc195a4 100644 --- a/lustre/tests/sanity.sh +++ b/lustre/tests/sanity.sh @@ -4942,6 +4942,16 @@ test_79() { # bug 12743 run_test 79 "df report consistency check =======================" test_80() { # bug 10718 + # relax strong synchronous semantics for slow backends like ZFS + local soc="obdfilter.*.sync_on_lock_cancel" + local soc_old=$(do_facet ost1 lctl get_param -n $soc | head -n1) + local hosts= + if [ "$soc_old" != "never" -a "$FSTYPE" != "ldiskfs" ]; then + hosts=$(for host in $(seq -f "ost%g" 1 $OSTCOUNT); do + facet_active_host $host; done | sort -u) + do_nodes $hosts lctl set_param $soc=never + fi + dd if=/dev/zero of=$DIR/$tfile bs=1M count=1 seek=1M sync; sleep 1; sync local BEFORE=`date +%s` @@ -4951,6 +4961,9 @@ test_80() { # bug 10718 if [ $DIFF -gt 1 ] ; then error "elapsed for 1M@1T = $DIFF" fi + + [ -n "$hosts" ] && do_nodes $hosts lctl set_param $soc=$soc_old + true rm -f $DIR/$tfile } -- 1.8.3.1