Move a KERNEL_ASSERT_LOCKED() from single_thread_clear() to cursig().
authormpi <mpi@openbsd.org>
Mon, 8 Mar 2021 10:54:53 +0000 (10:54 +0000)
committermpi <mpi@openbsd.org>
Mon, 8 Mar 2021 10:54:53 +0000 (10:54 +0000)
commitca0f58b85f7bf7a632b8cf4d234ce2c42f42d216
tree712ecfcaa974d963e7fb7bd639d3da731bc14b9f
parentf0794b6f83c2aaadf072e1c63dfd9a45d7503f6b
Move a KERNEL_ASSERT_LOCKED() from single_thread_clear() to cursig().

Ze big lock is currently necessary to ensure that two sibling threads
are not racing against each other when processing signals.  However it
is not strickly necessary to unpark sibling threads.

ok claudio@
sys/kern/kern_sig.c