Rename gv_kill_thread() to gv_kill_plex_thread(), since there are more

threads to come.
This commit is contained in:
Lukas Ertl 2004-09-13 17:44:47 +00:00
parent e114c8953a
commit fce2deb197
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=135164
4 changed files with 5 additions and 5 deletions

View file

@ -68,7 +68,7 @@ struct gv_volume *gv_find_vol(struct gv_softc *, char *);
void gv_format_config(struct gv_softc *, struct sbuf *, int, char *);
int gv_is_striped(struct gv_plex *);
int gv_is_open(struct g_geom *);
void gv_kill_thread(struct gv_plex *);
void gv_kill_plex_thread(struct gv_plex *);
int gv_object_type(struct gv_softc *, char *);
void gv_parse_config(struct gv_softc *, u_char *, int);
const char *gv_roughlength(off_t, int);

View file

@ -67,7 +67,7 @@ gv_plex_orphan(struct g_consumer *cp)
p = gp->softc;
if (p != NULL) {
gv_kill_thread(p);
gv_kill_plex_thread(p);
p->geom = NULL;
p->provider = NULL;
p->consumer = NULL;
@ -468,7 +468,7 @@ gv_plex_destroy_geom(struct gctl_req *req, struct g_class *mp,
* If this is a RAID5 plex, check if its worker thread is still active
* and signal it to self destruct.
*/
gv_kill_thread(p);
gv_kill_plex_thread(p);
/* g_free(sc); */
g_wither_geom(gp, ENXIO);
return (0);

View file

@ -228,7 +228,7 @@ gv_rm_plex(struct gv_softc *sc, struct gctl_req *req, struct gv_plex *p, int fla
p->vol_sc = NULL;
}
gv_kill_thread(p);
gv_kill_plex_thread(p);
g_free(p);
if (gp != NULL) {

View file

@ -817,7 +817,7 @@ gv_object_type(struct gv_softc *sc, char *name)
}
void
gv_kill_thread(struct gv_plex *p)
gv_kill_plex_thread(struct gv_plex *p)
{
if ((p->org == GV_PLEX_RAID5) && (p->flags & GV_PLEX_THREAD_ACTIVE)) {
p->flags |= GV_PLEX_THREAD_DIE;