xfs
[Top] [All Lists]

[PATCH 1/4] xfstests: test 110 sometimes fails to unmount scratch dev

To: xfs@xxxxxxxxxxx
Subject: [PATCH 1/4] xfstests: test 110 sometimes fails to unmount scratch dev
From: Dave Chinner <david@xxxxxxxxxxxxx>
Date: Thu, 26 Jul 2012 18:35:03 +1000
In-reply-to: <1343291706-14882-1-git-send-email-david@xxxxxxxxxxxxx>
References: <1343291706-14882-1-git-send-email-david@xxxxxxxxxxxxx>
From: Dave Chinner <dchinner@xxxxxxxxxx>

It runs a bunch of rm processes in the background, then immediately
calls _check_scratch_fs without waiting for them to complete, hence
the unmount can fail with a busy filesystem error.

Signed-off-by: Dave Chinner <dchinner@xxxxxxxxxx>
---
 110 |    1 +
 1 file changed, 1 insertion(+)

diff --git a/110 b/110
index aad5835..c58e6c9 100755
--- a/110
+++ b/110
@@ -69,6 +69,7 @@ do
     let I=$I+1
     [ $[$I % 1000] -eq 0 ] && echo "Created $I/$E"
 done
+wait
 
 sync
 
-- 
1.7.10

<Prev in Thread] Current Thread [Next in Thread>