CVSROOT:        /cvs
Module name:    src
Changes by:     clau...@cvs.openbsd.org 2023/09/08 03:06:31

Modified files:
        sys/kern       : kern_exit.c kern_fork.c kern_resource.c 
                         kern_sig.c kern_synch.c 
        sys/sys        : proc.h 

Log message:
Change how ps_threads and p_thr_link are locked away from using SCHED_LOCK.

The per process thread list can be traversed (read) by holding either
the KERNEL_LOCK or the per process ps_mtx (instead of SCHED_LOCK).
Abusing the SCHED_LOCK for this makes it impossible to split up the
scheduler lock into something more fine grained.

Tested by phessler@, ok mpi@

Reply via email to