diff options
-rw-r--r-- | sys/geom/mirror/g_mirror.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/sys/geom/mirror/g_mirror.c b/sys/geom/mirror/g_mirror.c index 3546971..5a14ab9 100644 --- a/sys/geom/mirror/g_mirror.c +++ b/sys/geom/mirror/g_mirror.c @@ -1732,13 +1732,8 @@ g_mirror_update_device(struct g_mirror_softc *sc, boolean_t force) } } if (ndisks == 0) { - int timeout; - - /* No valid disks still, wait some more. */ - timeout = - atomic_load_acq_int(&g_mirror_timeout); - callout_reset(&sc->sc_callout, timeout * hz, - g_mirror_go, sc); + /* No valid disks found, destroy device. */ + sc->sc_flags |= G_MIRROR_DEVICE_FLAG_DESTROY; return; } } else { |