Whamcloud - gitweb
LU-240 test_171() races with background multiop
authorBobi Jam <bobijam@whamcloud.com>
Tue, 10 May 2011 02:19:07 +0000 (10:19 +0800)
committerJohann Lombardi <johann@whamcloud.com>
Fri, 13 May 2011 04:15:20 +0000 (21:15 -0700)
Change-Id: Ibdcc584218708bd29724f3f71804a3ebf5b1d454
Signed-off-by: Bobi Jam <bobijam@whamcloud.com>
Reviewed-on: http://review.whamcloud.com/520
Tested-by: Hudson
Reviewed-by: Johann Lombardi <johann@whamcloud.com>
lustre/tests/sanity.sh

index 4336c9c..88ab9aa 100644 (file)
@@ -6615,9 +6615,12 @@ test_171() { # bug20592
 #define OBD_FAIL_PTLRPC_DUMP_LOG         0x50e
         $LCTL set_param fail_loc=0x50e
         $LCTL set_param fail_val=3000
-        multiop_bg_pause $DIR/$tfile Os || true
+        multiop_bg_pause $DIR/$tfile O_s || true
+        local MULTIPID=$!
+        kill -USR1 $MULTIPID
         # cause log dump
         sleep 3
+        wait $MULTIPID
         if dmesg | grep "recursive fault"; then
                 error "caught a recursive fault"
         fi