diff options
author | phk <phk@FreeBSD.org> | 2003-04-23 20:16:13 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2003-04-23 20:16:13 +0000 |
commit | 7c462ceb2b050c850263218e20100ad6fb4ffa41 (patch) | |
tree | ed75036c2eafccd85b7a612e6442c7e8811814e4 /sys/geom/geom_event.c | |
parent | 67a31a61073262541d6ef8254295a8532553cca6 (diff) | |
download | FreeBSD-src-7c462ceb2b050c850263218e20100ad6fb4ffa41.zip FreeBSD-src-7c462ceb2b050c850263218e20100ad6fb4ffa41.tar.gz |
Turn EV_NEW_PROVIDER into a g_call_me() event.
Diffstat (limited to 'sys/geom/geom_event.c')
-rw-r--r-- | sys/geom/geom_event.c | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/sys/geom/geom_event.c b/sys/geom/geom_event.c index 46ef58d..eeaaadb 100644 --- a/sys/geom/geom_event.c +++ b/sys/geom/geom_event.c @@ -142,10 +142,6 @@ g_destroy_event(struct g_event *ep) static void g_do_event(struct g_event *ep) { - struct g_class *mp; - struct g_consumer *cp; - struct g_provider *pp; - int i; g_trace(G_T_TOPOLOGY, "g_do_event(%p) %d - ", ep, ep->event); g_topology_assert(); @@ -154,24 +150,6 @@ g_do_event(struct g_event *ep) ep->func(ep->arg, 0); g_topology_assert(); break; - case EV_NEW_PROVIDER: - if (g_shutdown) - break; - pp = ep->ref[0]; - g_trace(G_T_TOPOLOGY, "EV_NEW_PROVIDER(%s)", pp->name); - LIST_FOREACH(mp, &g_classes, class) { - if (mp->taste == NULL) - continue; - i = 1; - LIST_FOREACH(cp, &pp->consumers, consumers) - if(cp->geom->class == mp) - i = 0; - if (i) { - mp->taste(mp, pp, 0); - g_topology_assert(); - } - } - break; case EV_LAST: default: KASSERT(1 == 0, ("Unknown event %d", ep->event)); |