Whamcloud - gitweb
LU-2877 tests: sanity test_34h needs to flush cache after write
authorOleg Drokin <green@whamcloud.com>
Wed, 27 Feb 2013 03:30:24 +0000 (22:30 -0500)
committerOleg Drokin <oleg.drokin@intel.com>
Tue, 5 Mar 2013 17:08:20 +0000 (12:08 -0500)
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 <oleg.drokin@intel.com>
Reviewed-on: http://review.whamcloud.com/5541
Tested-by: Hudson
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Jinshan Xiong <jinshan.xiong@intel.com>
lustre/tests/sanity.sh

index e2a17db..5042e40 100644 (file)
@@ -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