diff --git a/module/zfs/vdev.c b/module/zfs/vdev.c index 3b2ba8e259c7..b979509c5784 100644 --- a/module/zfs/vdev.c +++ b/module/zfs/vdev.c @@ -1868,6 +1868,9 @@ vdev_dtl_should_excise(vdev_t *vd) ASSERT0(scn->scn_phys.scn_errors); ASSERT0(vd->vdev_children); + if (vd->vdev_state < VDEV_STATE_DEGRADED) + return (B_FALSE); + if (vd->vdev_resilver_txg == 0 || range_tree_space(vd->vdev_dtl[DTL_MISSING]) == 0) return (B_TRUE);