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 <mav@FreeBSD.org>
Signed-off-by: Rob Norris <rob.norris@klarasystems.com>
Closes #17054
This commit is contained in:
Rob Norris 2025-02-24 07:22:00 +11:00 committed by Ameer Hamza
parent 92d1686a2a
commit b4ce059a76

View File

@ -30,6 +30,7 @@ DATAFILE="$TMPDIR/datafile"
function cleanup
{
zpool clear $TESTPOOL
destroy_pool $TESTPOOL
unload_scsi_debug
rm -f $DATA_FILE