Merge of master-melb:xfs-cmds:28942a by kenmcd.
run a sync after killing all the fsstress processes to ensure
they have all completed before trying to unmount scratch.
_cleanup()
{
killall -q -TERM fsstress 2> /dev/null
+ sync # ensures all fsstress processes died
_cleanup_testdir
}
TEST_FILE=$SCRATCH_MNT/test_file
TEST_PROG=$here/src/unwritten_sync
-LOOPS=100
+LOOPS=50
echo "*** test unwritten extent conversion under heavy I/O"
rm -f $TEST_FILE
$TEST_PROG $LOOPS $TEST_FILE
-killall -q -TERM fsstress 2> /dev/null
echo " *** test done"