Move single_thread_set() out of KERNEL_LOCK().
authormpi <mpi@openbsd.org>
Mon, 15 Feb 2021 09:35:59 +0000 (09:35 +0000)
committermpi <mpi@openbsd.org>
Mon, 15 Feb 2021 09:35:59 +0000 (09:35 +0000)
commit86c583514576a3099d79bc4601e2fc7824fe054f
treee5a1ccde0d3dd858dffeafa71e83f042912100c3
parent37afb64508d9884423031d8df683844c17af4c01
Move single_thread_set() out of KERNEL_LOCK().

Use the SCHED_LOCK() to ensure `ps_thread' isn't being modified by a sibling
when entering tsleep(9) w/o KERNEL_LOCK().

ok visa@
sys/kern/kern_exit.c
sys/kern/kern_fork.c
sys/kern/kern_sig.c
sys/sys/proc.h