If there are no valid components after the timeout, just destroy device.

There is probably nothing to wait for.
This commit is contained in:
Pawel Jakub Dawidek 2004-07-31 22:10:51 +00:00
parent 4b017d0d93
commit 959521ff1f
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=132941

View File

@ -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 {