If run_interrupt_driven_config_hooks() waits 360 seconds and INVARIANTS
is compiled into the kernel, then panic. MFC after: 3 days Discussed with: scottl
This commit is contained in:
parent
860c4e582a
commit
828e07694c
@ -73,17 +73,22 @@ run_interrupt_driven_config_hooks_warning(int warned)
|
||||
char namebuf[64];
|
||||
long offset;
|
||||
|
||||
printf("run_interrupt_driven_hooks: still waiting after %d seconds "
|
||||
"for", warned * WARNING_INTERVAL_SECS);
|
||||
if (warned < 6) {
|
||||
printf("run_interrupt_driven_hooks: still waiting after %d "
|
||||
"seconds for", warned * WARNING_INTERVAL_SECS);
|
||||
TAILQ_FOREACH(hook_entry, &intr_config_hook_list, ich_links) {
|
||||
if (linker_search_symbol_name((caddr_t)hook_entry->ich_func,
|
||||
namebuf, sizeof(namebuf), &offset) == 0)
|
||||
if (linker_search_symbol_name(
|
||||
(caddr_t)hook_entry->ich_func, namebuf,
|
||||
sizeof(namebuf), &offset) == 0)
|
||||
printf(" %s", namebuf);
|
||||
else
|
||||
printf(" %p", hook_entry->ich_func);
|
||||
}
|
||||
printf("\n");
|
||||
}
|
||||
KASSERT(warned < 6,
|
||||
("run_interrupt_driven_config_hooks: waited too long"));
|
||||
}
|
||||
|
||||
static void
|
||||
run_interrupt_driven_config_hooks(dummy)
|
||||
@ -104,7 +109,7 @@ run_interrupt_driven_config_hooks(dummy)
|
||||
while (!TAILQ_EMPTY(&intr_config_hook_list)) {
|
||||
if (msleep(&intr_config_hook_list, &intr_config_hook_lock,
|
||||
PCONFIG, "conifhk", WARNING_INTERVAL_SECS * hz) ==
|
||||
EWOULDBLOCK && warned < 5) {
|
||||
EWOULDBLOCK) {
|
||||
mtx_unlock(&intr_config_hook_lock);
|
||||
warned++;
|
||||
run_interrupt_driven_config_hooks_warning(warned);
|
||||
|
Loading…
Reference in New Issue
Block a user