[PATCH 2/4] xfs/013: exit cleaner thread if fsstress dies

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Darrick J. Wong <darrick.wong@xxxxxxxxxx>

In this test, the cleaner thread deletes the directory trees created by
fsstress in order to exercise the free inode btree code.  However, if
fsstress dies, the cleaner can end up waiting forever for a directory
that will never be created, which hangs up the test run.  Therefore,
abort if fsstress has ended.

Signed-off-by: Darrick J. Wong <darrick.wong@xxxxxxxxxx>
---
 tests/xfs/013 |    4 ++++
 1 file changed, 4 insertions(+)


diff --git a/tests/xfs/013 b/tests/xfs/013
index 817558f..4e49e4b 100755
--- a/tests/xfs/013
+++ b/tests/xfs/013
@@ -88,6 +88,10 @@ _cleaner()
 		while [ ! -e $need ]
 		do
 			sleep 3
+			if ! pgrep fsstress > /dev/null 2>&1; then
+				echo "fsstress died?"
+				return
+			fi
 		done
 
 		rm -rf $dir/dir$i

--
To unsubscribe from this list: send the line "unsubscribe linux-xfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [XFS Filesystem Development (older mail)]     [Linux Filesystem Development]     [Linux Audio Users]     [Yosemite Trails]     [Linux Kernel]     [Linux RAID]     [Linux SCSI]


  Powered by Linux