xfs/013: use killall -9 and wait in _cleanup()

Kill any lingering fsstress processes and wait properly should we abort
the test. This prevents the workload from inadvertently affecting
subsequent tests.

Signed-off-by: Brian Foster <bfoster@redhat.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
This commit is contained in:
Brian Foster
2014-05-15 11:37:49 +10:00
committed by Dave Chinner
parent 85a011724a
commit 49a4f924cd
+2 -1
View File
@@ -40,7 +40,8 @@ status=1 # failure is the default!
_cleanup()
{
killall fsstress 2>/dev/null
killall -9 fsstress 2>/dev/null
wait
cd /
umount $SCRATCH_MNT 2>/dev/null
rm -f $tmp.*