btrfs/132: wait the writer to avoid EBUSY
authorQu Wenruo <quwenruo@cn.fujitsu.com>
Mon, 26 Dec 2016 04:57:52 +0000 (12:57 +0800)
committerEryu Guan <eguan@redhat.com>
Wed, 28 Dec 2016 11:19:03 +0000 (19:19 +0800)
commit2333197d308e0674aefb90620a833cb7e0ee6b6e
tree5e5c6fec27d30d1890a816d02c2af648d46752bd
parent7ee1d97c799bb4e83eba98b931a6d30ba43603eb
btrfs/132: wait the writer to avoid EBUSY

The kill and wait method will only wait for the children process to
exit, while the xfs_io can still run at background.

This makes the test always fails on HDD backed physical machine.

Use the "while ps aux | grep" method in btrfs/069 to truely wait the
xfs_io to finish.

Signed-off-by: Qu Wenruo <quwenruo@cn.fujitsu.com>
Reviewed-by: Eryu Guan <eguan@redhat.com>
Signed-off-by: Eryu Guan <eguan@redhat.com>
tests/btrfs/132