summaryrefslogtreecommitdiffstats
path: root/sys/geom
diff options
context:
space:
mode:
Diffstat (limited to 'sys/geom')
-rw-r--r--sys/geom/vinum/geom_vinum_plex.c1
-rw-r--r--sys/geom/vinum/geom_vinum_subr.c1
2 files changed, 1 insertions, 1 deletions
diff --git a/sys/geom/vinum/geom_vinum_plex.c b/sys/geom/vinum/geom_vinum_plex.c
index 02855e4..448f55e 100644
--- a/sys/geom/vinum/geom_vinum_plex.c
+++ b/sys/geom/vinum/geom_vinum_plex.c
@@ -469,7 +469,6 @@ gv_plex_destroy_geom(struct gctl_req *req, struct g_class *mp,
* and signal it to self destruct.
*/
gv_kill_thread(p);
- mtx_destroy(&p->worklist_mtx);
/* g_free(sc); */
g_wither_geom(gp, ENXIO);
return (0);
diff --git a/sys/geom/vinum/geom_vinum_subr.c b/sys/geom/vinum/geom_vinum_subr.c
index 695d764..7f11c57 100644
--- a/sys/geom/vinum/geom_vinum_subr.c
+++ b/sys/geom/vinum/geom_vinum_subr.c
@@ -824,5 +824,6 @@ gv_kill_thread(struct gv_plex *p)
while (!(p->flags & GV_PLEX_THREAD_DEAD))
tsleep(p, PRIBIO, "gv_die", hz);
p->flags &= ~GV_PLEX_THREAD_ACTIVE;
+ mtx_destroy(&p->worklist_mtx);
}
}
OpenPOWER on IntegriCloud