From owner-cvs-src@FreeBSD.ORG Thu May 1 14:23:16 2003 Return-Path: Delivered-To: cvs-src@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EC3AF37B404 for ; Thu, 1 May 2003 14:23:16 -0700 (PDT) Received: from mail.speakeasy.net (mail15.speakeasy.net [216.254.0.215]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0483543FD7 for ; Thu, 1 May 2003 14:23:15 -0700 (PDT) (envelope-from jhb@FreeBSD.org) Received: (qmail 9952 invoked from network); 1 May 2003 21:23:22 -0000 Received: from unknown (HELO server.baldwin.cx) ([216.27.160.63]) (envelope-sender )encrypted SMTP for ; 1 May 2003 21:23:22 -0000 Received: from laptop.baldwin.cx ([216.133.140.1]) by server.baldwin.cx (8.12.8/8.12.8) with ESMTP id h41LNBOv026999; Thu, 1 May 2003 17:23:11 -0400 (EDT) (envelope-from jhb@FreeBSD.org) Message-ID: X-Mailer: XFMail 1.5.4 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: <200305012116.h41LGckx092142@repoman.freebsd.org> Date: Thu, 01 May 2003 17:23:07 -0400 (EDT) From: John Baldwin To: John Baldwin cc: cvs-src@FreeBSD.org cc: src-committers@FreeBSD.org cc: cvs-all@FreeBSD.org Subject: RE: cvs commit: src/sys/kern kern_exit.c kern_fork.c kern_proc.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 May 2003 21:23:17 -0000 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 <>< http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve!" - http://www.FreeBSD.org/