From b4ce059a7638bcc329298c8102473ebb37633dad Mon Sep 17 00:00:00 2001 From: Rob Norris Date: Mon, 24 Feb 2025 07:22:00 +1100 Subject: [PATCH] suspend_resume_single: clear pool errors on fail If the timing is unfortunate, the pool can suspend just as we're failing because it didn't suspend. If we don't resume the pool, we hang trying to destroy it. Sponsored-by: Klara, Inc. Sponsored-by: Wasabi Technology, Inc. Reviewed-by: Alexander Motin Signed-off-by: Rob Norris Closes #17054 --- tests/zfs-tests/tests/functional/fault/suspend_resume_single.ksh | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/zfs-tests/tests/functional/fault/suspend_resume_single.ksh b/tests/zfs-tests/tests/functional/fault/suspend_resume_single.ksh index 0dc5584e4..22831d28a 100755 --- a/tests/zfs-tests/tests/functional/fault/suspend_resume_single.ksh +++ b/tests/zfs-tests/tests/functional/fault/suspend_resume_single.ksh @@ -30,6 +30,7 @@ DATAFILE="$TMPDIR/datafile" function cleanup { + zpool clear $TESTPOOL destroy_pool $TESTPOOL unload_scsi_debug rm -f $DATA_FILE