From 8fcac3f7a25c2d97974d292830dabe1611274085 Mon Sep 17 00:00:00 2001 From: Oleg Drokin Date: Tue, 26 Feb 2013 22:30:24 -0500 Subject: [PATCH] LU-2877 tests: sanity test_34h needs to flush cache after write We need to ensure that the cache is clean after dd in the test, otherwise subsequent multiop might block trying to flush the dirty pages for more than 2 seconds and trigger a false failure. Change-Id: Ifb5a0aa0f9c627b353abe0d402c42a4e14d67609 Signed-off-by: Oleg Drokin Reviewed-on: http://review.whamcloud.com/5541 Tested-by: Hudson Tested-by: Maloo Reviewed-by: Jinshan Xiong --- lustre/tests/sanity.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lustre/tests/sanity.sh b/lustre/tests/sanity.sh index e2a17db..5042e40 100644 --- a/lustre/tests/sanity.sh +++ b/lustre/tests/sanity.sh @@ -2461,6 +2461,8 @@ test_34h() { local sz=1000 dd if=/dev/zero of=$DIR/$tfile bs=1M count=10 || error + sync # Flush the cache so that multiop below does not block on cache + # flush when getting the group lock $MULTIOP $DIR/$tfile OG${gid}T${sz}g${gid}c & MULTIPID=$! sleep 2 -- 1.8.3.1