HomeFreeBSD

Fix race between resilver wait and offline/detach

Description

Fix race between resilver wait and offline/detach

We should not clear scn_state and notify waiters until we call
vdev_dtl_reassess(), otherwise following offline/detach request
may fail with "no valid replicas".

Signed-off-by: Alexander Motin <mav@FreeBSD.org>
Sponsored by: iXsystems, Inc.

Details

Provenance
mavAuthored on Apr 24 2025, 5:30 PM
Tony Hutter <hutter2@llnl.gov>Committed on May 2 2025, 10:19 PM
Parents
rG634c172ee89f: tests: fix `S_IFMT` undeclared at `statx.c`
Branches
Unknown
Tags
Unknown