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:
parent
ecffb8e64b
commit
92f49a969d
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=133450
@ -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);
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user