Sleep on "-" in our normal state to simplify debugging.

This commit is contained in:
phk 2003-06-18 10:33:09 +00:00
parent aceb878fef
commit 57f7d6f488
2 changed files with 5 additions and 3 deletions

View File

@ -310,7 +310,7 @@ g_io_schedule_down(struct thread *tp __unused)
bp = g_bioq_first(&g_bio_run_down);
if (bp == NULL) {
msleep(&g_wait_down, &g_bio_run_down.bio_queue_lock,
PRIBIO | PDROP, "g_down", hz/10);
PRIBIO | PDROP, "-", hz/10);
continue;
}
g_bioq_unlock(&g_bio_run_down);
@ -367,7 +367,7 @@ g_io_schedule_up(struct thread *tp __unused)
continue;
}
msleep(&g_wait_up, &g_bio_run_up.bio_queue_lock,
PRIBIO | PDROP, "g_up", hz/10);
PRIBIO | PDROP, "-", hz/10);
}
}

View File

@ -132,7 +132,7 @@ g_event_procbody(void)
tp->td_base_pri = PRIBIO;
for(;;) {
g_run_events();
tsleep(&g_wait_event, PRIBIO, "g_events", hz/10);
tsleep(&g_wait_event, PRIBIO, "-", hz/10);
}
}
@ -152,6 +152,8 @@ geom_shutdown(void *foo __unused)
void
g_init(void)
{
g_trace(G_T_TOPOLOGY, "g_ignition");
sx_init(&topology_lock, "GEOM topology");
g_io_init();
g_event_init();