Add a KASSERT for p->p_wchan == NULL to setrunqueue()
authorclaudio <claudio@openbsd.org>
Tue, 19 Sep 2023 11:31:51 +0000 (11:31 +0000)
committerclaudio <claudio@openbsd.org>
Tue, 19 Sep 2023 11:31:51 +0000 (11:31 +0000)
commit709f95964c86ed2960242cd7d1d5d52d9707c231
tree19ad37b6606fdbb047da4c38d85e71c48c08c7b1
parentde92f022b000940561918115be1183c1ac9f2e18
Add a KASSERT for p->p_wchan == NULL to setrunqueue()

There is the same check in sched_chooseproc() but that is too late
to know where the bad insertion into the runqueue was done.
OK mpi@
sys/kern/kern_sched.c