summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2002-09-30 08:27:29 +0000
committerphk <phk@FreeBSD.org>2002-09-30 08:27:29 +0000
commit23e3bcb405c712346beffd2371b06ffbf5fee203 (patch)
tree718d9fde75799fd01f57bae351593703191d8915 /sys
parentf961c7e4c7d60e75e1a4c82dd0caee5557e60a9f (diff)
downloadFreeBSD-src-23e3bcb405c712346beffd2371b06ffbf5fee203.zip
FreeBSD-src-23e3bcb405c712346beffd2371b06ffbf5fee203.tar.gz
Make sure we don't loose our topology lock in a call_me() handler.
Sponsored by: DARPA & NAI Labs.
Diffstat (limited to 'sys')
-rw-r--r--sys/geom/geom_event.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/geom/geom_event.c b/sys/geom/geom_event.c
index 4188405..34a836e 100644
--- a/sys/geom/geom_event.c
+++ b/sys/geom/geom_event.c
@@ -153,6 +153,7 @@ g_do_event(struct g_event *ep)
switch (ep->event) {
case EV_CALL_ME:
ep->func(ep->arg);
+ g_topology_assert();
break;
case EV_NEW_CLASS:
mp2 = ep->class;
OpenPOWER on IntegriCloud