Remove the P_WSLEEP specific KASSERT(). Not only procs in state SSTOP
authorclaudio <claudio@openbsd.org>
Sat, 5 Aug 2023 12:41:04 +0000 (12:41 +0000)
committerclaudio <claudio@openbsd.org>
Sat, 5 Aug 2023 12:41:04 +0000 (12:41 +0000)
commit1588c8424bef641c645c007c47349a63cc556a2d
treea76344218f08e949e4da50940d7a1e0dd5078281
parent194ff02fb6be247e27fe964e901d891d99ec0b74
Remove the P_WSLEEP specific KASSERT(). Not only procs in state SSTOP
can be added to the run queue but also procs in state SRUN. The latter
happens when schedcpu() kicks in before the proc had a chance to run.
Problem spotted by gkoehler@
OK cheloha@
sys/kern/kern_sched.c