From owner-cvs-all@FreeBSD.ORG Thu May 1 14:16:39 2003 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9810E37B401; Thu, 1 May 2003 14:16:39 -0700 (PDT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 20B6E43FAF; Thu, 1 May 2003 14:16:39 -0700 (PDT) (envelope-from jhb@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.6/8.12.6) with ESMTP id h41LGc0U092143; Thu, 1 May 2003 14:16:38 -0700 (PDT) (envelope-from jhb@repoman.freebsd.org) Received: (from jhb@localhost) by repoman.freebsd.org (8.12.6/8.12.6/Submit) id h41LGckx092142; Thu, 1 May 2003 14:16:38 -0700 (PDT) Message-Id: <200305012116.h41LGckx092142@repoman.freebsd.org> From: John Baldwin Date: Thu, 1 May 2003 14:16:38 -0700 (PDT) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/kern kern_exit.c kern_fork.c kern_proc.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 May 2003 21:16:40 -0000 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. Revision Changes Path 1.213 +0 -1 src/sys/kern/kern_exit.c 1.197 +3 -4 src/sys/kern/kern_fork.c 1.185 +3 -0 src/sys/kern/kern_proc.c