cvs commit: src/sys/kern kern_exit.c kern_fork.c kern_proc.c

John Baldwin jhb at FreeBSD.org
Thu May 1 14:23:17 PDT 2003


On 01-May-2003 John Baldwin wrote:
> jhb         2003/05/01 14:16:38 PDT
> 
>   FreeBSD src repository
> 
>   Modified files:
>     sys/kern             kern_exit.c kern_fork.c kern_proc.c 
>   Log:
>   Initialize and destroy the struct proc mutex in the proc zone's init and
>   fini routines instead of in fork() and wait().  This has the nice side
>   benefit that the proc lock of any process on the allproc list is always
>   valid and sched_lock doesn't have to be used to test against PRS_NEW
>   anymore.

It also means we don't init and destroy process mutexes as often if
we recycle proc structures.

-- 

John Baldwin <jhb at FreeBSD.org>  <><  http://www.FreeBSD.org/~jhb/
"Power Users Use the Power to Serve!"  -  http://www.FreeBSD.org/


More information about the cvs-src mailing list