diff options
Diffstat (limited to 'sys/geom/geom_event.c')
-rw-r--r-- | sys/geom/geom_event.c | 20 |
1 files changed, 1 insertions, 19 deletions
diff --git a/sys/geom/geom_event.c b/sys/geom/geom_event.c index 015a541..46ef58d 100644 --- a/sys/geom/geom_event.c +++ b/sys/geom/geom_event.c @@ -143,7 +143,7 @@ static void g_do_event(struct g_event *ep) { struct g_class *mp; - struct g_consumer *cp, *cp2; + struct g_consumer *cp; struct g_provider *pp; int i; @@ -172,24 +172,6 @@ g_do_event(struct g_event *ep) } } break; - case EV_SPOILED: - pp = ep->ref[0]; - g_trace(G_T_TOPOLOGY, "EV_SPOILED(%p(%s),%p)", - pp, pp->name, ep->ref[1]); - cp = LIST_FIRST(&pp->consumers); - while (cp != NULL) { - cp2 = LIST_NEXT(cp, consumers); - if (cp->spoiled) { - g_trace(G_T_TOPOLOGY, "spoiling %p (%s) (%p)", - cp, cp->geom->name, cp->geom->spoiled); - if (cp->geom->spoiled != NULL) - cp->geom->spoiled(cp); - else - cp->spoiled = 0; - } - cp = cp2; - } - break; case EV_LAST: default: KASSERT(1 == 0, ("Unknown event %d", ep->event)); |