The IPL_NONE mutex didn't block interrupts that can cause a powerpc64
kernel with option WITNESS to "panic: acquiring blockable sleep lock
with spinlock or critical section held (kernel_lock) &kernel_lock".
ok mpi@
-/* $OpenBSD: ipmi.c,v 1.118 2022/04/08 13:13:14 mbuhl Exp $ */
+/* $OpenBSD: ipmi.c,v 1.119 2024/04/03 18:32:47 gkoehler Exp $ */
/*
* Copyright (c) 2015 Masao Uebayashi
c->c_sc = sc;
c->c_ccode = -1;
- sc->sc_cmd_taskq = taskq_create("ipmicmd", 1, IPL_NONE, TASKQ_MPSAFE);
+ sc->sc_cmd_taskq = taskq_create("ipmicmd", 1, IPL_MPFLOOR,
+ TASKQ_MPSAFE);
}
int