diff options
author | phk <phk@FreeBSD.org> | 2005-04-19 06:23:59 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2005-04-19 06:23:59 +0000 |
commit | ed5a7da7983da8c0f3d644eedb48b7282b34e0dd (patch) | |
tree | 2382d8ec4f2d60051f14de70d134765938972e4d /sys/geom/geom_kern.c | |
parent | b7632e9a5b90b6ef37dd38fcab327427cdeb3f06 (diff) | |
download | FreeBSD-src-ed5a7da7983da8c0f3d644eedb48b7282b34e0dd.zip FreeBSD-src-ed5a7da7983da8c0f3d644eedb48b7282b34e0dd.tar.gz |
Call g_waitidle() instead of GEOM using the root_mount_hold() KPI.
GEOM could (and will) get events as a result of drivers coming in
late so a one-shot method is not good enough for GEOM.
Diffstat (limited to 'sys/geom/geom_kern.c')
-rw-r--r-- | sys/geom/geom_kern.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/sys/geom/geom_kern.c b/sys/geom/geom_kern.c index 29080e9..1308799 100644 --- a/sys/geom/geom_kern.c +++ b/sys/geom/geom_kern.c @@ -132,19 +132,13 @@ g_event_procbody(void) { struct proc *p = g_event_proc; struct thread *tp = FIRST_THREAD_IN_PROC(p); - struct root_hold_token *t; mtx_assert(&Giant, MA_NOTOWNED); mtx_lock_spin(&sched_lock); sched_prio(tp, PRIBIO); mtx_unlock_spin(&sched_lock); - t = root_mount_hold("GEOM"); for(;;) { g_run_events(); - if (t != 0) { - root_mount_rel(t); - t = NULL; - } tsleep(&g_wait_event, PRIBIO, "-", hz/10); } } |