From owner-cvs-all@FreeBSD.ORG Sun Mar 7 16:32:35 2004 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 52CD216A4CE; Sun, 7 Mar 2004 16:32:35 -0800 (PST) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 369E043D4C; Sun, 7 Mar 2004 16:32:35 -0800 (PST) (envelope-from peter@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.10/8.12.10) with ESMTP id i280WZGe043486; Sun, 7 Mar 2004 16:32:35 -0800 (PST) (envelope-from peter@repoman.freebsd.org) Received: (from peter@localhost) by repoman.freebsd.org (8.12.10/8.12.10/Submit) id i280WYUL043485; Sun, 7 Mar 2004 16:32:34 -0800 (PST) (envelope-from peter) Message-Id: <200403080032.i280WYUL043485@repoman.freebsd.org> From: Peter Wemm Date: Sun, 7 Mar 2004 16:32:34 -0800 (PST) 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_fork.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: Mon, 08 Mar 2004 00:32:35 -0000 peter 2004/03/07 16:32:34 PST FreeBSD src repository Modified files: sys/kern kern_fork.c Log: Move a vref call outside of proc locks and Giant. By virtue of the fact that we (p1) are currently running, we hold a reference on p_textvp which means the vnode cannot go away. p2 cannot run yet (and hence cannot exit) so this should be safe to do at this point. As a bonus, it removes a block of under-Giant code that was there to support the vref. Revision Changes Path 1.220 +4 -5 src/sys/kern/kern_fork.c