]> www.infradead.org Git - users/hch/xfstests-dev.git/commit
Hi,
authorJeff Moyer <jmoyer@redhat.com>
Wed, 3 Jun 2009 20:13:53 +0000 (15:13 -0500)
committerEric Sandeen <sandeen@sandeen.net>
Wed, 3 Jun 2009 20:13:53 +0000 (15:13 -0500)
commitbe64a1a99b559a07e47377c700897606146602c4
treef8267da13d1aeead0e0d27ab6fd5216ab912f2e4
parent6b26794772a4acbe8df1cc48d7a169011268d97e
Hi,

So, the xfs test suite does a mount, followed by running the test, then
an unmount after the test exits.  aio-dio-invalidate-failure spawns two
children, and will kill them off before it exits.  The problem is that
it doesn't wait for them to exit before returning, so the xfs test
harness ends up failing the umount as the mount point is still busy.

The fix is to simply wait for each of the children exits before
returning from the parent.

(Eric Sandeen: add one more waitpid to error case)

Signed-off-by: Jeff Moyer <jmoyer@redhat.com>
Reviewed-by: Eric Sandeen <sandeen@redhat.com>
src/aio-dio-regress/aio-dio-invalidate-failure.c