xfs/167: wait for fsstress to exit
authorEryu Guan <eguan@redhat.com>
Wed, 14 Oct 2015 03:19:34 +0000 (14:19 +1100)
committerDave Chinner <david@fromorbit.com>
Wed, 14 Oct 2015 03:19:34 +0000 (14:19 +1100)
sync doesn't guarantee all fsstress processes died, and sometimes it
ends up running fsck on a mounted fs.

Use wait to wait for fsstress to exit.

Signed-off-by: Eryu Guan <eguan@redhat.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
tests/xfs/167

index 875bd318bc4a733fa5d9b552a1f32609984b1ed8..e6c65d24ce399e3133b7ab9a6bfa4be117c0569a 100755 (executable)
@@ -35,7 +35,7 @@ trap "_cleanup; exit \$status" 0 1 2 3 15
 _cleanup()
 {
        $KILLALL_PROG -r -q -TERM fsstress 2> /dev/null
-       sync    # ensures all fsstress processes died
+       wait    # ensures all fsstress processes died
 }
 
 workout()