Page MenuHomeFreeBSD

D20744.diff
No OneTemporary

D20744.diff

Index: head/sys/geom/mirror/g_mirror.c
===================================================================
--- head/sys/geom/mirror/g_mirror.c
+++ head/sys/geom/mirror/g_mirror.c
@@ -3291,6 +3291,7 @@
sx_xlock(&sc->sc_lock);
sc->sc_flags |= G_MIRROR_DEVICE_FLAG_TASTING;
error = g_mirror_add_disk(sc, pp, &md);
+ sc->sc_flags &= ~G_MIRROR_DEVICE_FLAG_TASTING;
if (error != 0) {
G_MIRROR_DEBUG(0, "Cannot add disk %s to %s (error=%d).",
pp->name, gp->name, error);
@@ -3302,7 +3303,6 @@
}
gp = NULL;
}
- sc->sc_flags &= ~G_MIRROR_DEVICE_FLAG_TASTING;
if ((sc->sc_flags & G_MIRROR_DEVICE_FLAG_DESTROY) != 0) {
g_mirror_destroy(sc, G_MIRROR_DESTROY_HARD);
g_topology_lock();

File Metadata

Mime Type
text/plain
Expires
Sun, Jan 12, 4:53 AM (21 h, 11 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15761398
Default Alt Text
D20744.diff (706 B)

Event Timeline