1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-19 10:53:58 +00:00

If we kill the worklist thread of a RAID5 plex we can destroy

the worklist mutex at the same time, so move the mtx_destroy() call
to gv_kill_thread().
This commit is contained in:
Lukas Ertl 2004-08-10 20:51:48 +00:00
parent ecffb8e64b
commit 92f49a969d
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=133450
2 changed files with 1 additions and 1 deletions

View File

@ -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);

View File

@ -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);
}
}