HomeFreeBSD

vdev_open: clear async remove flag after reopen

Description

vdev_open: clear async remove flag after reopen

It's possible for a vdev to be flagged for async remove after the pool
has suspended. If the removed device has been returned when the pool is
resumed, the ASYNC_REMOVE task will still run at the end of txg, and
remove the device from the pool again.

To fix, we clear the async remove flag at reopen, just as we did for the
async fault flag in 5de3ac223.

Sponsored-by: Klara, Inc.
Sponsored-by: Wasabi Technology, Inc.
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Alexander Motin <mav@FreeBSD.org>
Signed-off-by: Rob Norris <rob.norris@klarasystems.com>
Closes #16921

Details

Provenance
rob.norris_klarasystems.comAuthored on Fri, Jan 3, 10:42 PM
GitHub <noreply@github.com>Committed on Fri, Jan 3, 10:42 PM
Parents
rGe94549d868c5: ZTS: remove unused TESTDIRS from pam/cleanup.ksh
Branches
Unknown
Tags
Unknown