From owner-p4-projects@FreeBSD.ORG Fri Feb 24 20:11:32 2006 Return-Path: X-Original-To: p4-projects@freebsd.org Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id DAEDA16A423; Fri, 24 Feb 2006 20:11:31 +0000 (GMT) X-Original-To: perforce@freebsd.org Delivered-To: perforce@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9894216A420 for ; Fri, 24 Feb 2006 20:11:31 +0000 (GMT) (envelope-from jhb@freebsd.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 51A0943D48 for ; Fri, 24 Feb 2006 20:11:31 +0000 (GMT) (envelope-from jhb@freebsd.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id k1OKBVZt020147 for ; Fri, 24 Feb 2006 20:11:31 GMT (envelope-from jhb@freebsd.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id k1OKBVdM020143 for perforce@freebsd.org; Fri, 24 Feb 2006 20:11:31 GMT (envelope-from jhb@freebsd.org) Date: Fri, 24 Feb 2006 20:11:31 GMT Message-Id: <200602242011.k1OKBVdM020143@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to jhb@freebsd.org using -f From: John Baldwin To: Perforce Change Reviews Cc: Subject: PERFORCE change 92355 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 24 Feb 2006 20:11:32 -0000 http://perforce.freebsd.org/chv.cgi?CH=92355 Change 92355 by jhb@jhb_slimer on 2006/02/24 20:11:28 Allow a PHOLD() of curproc at any time. Affected files ... .. //depot/projects/smpng/sys/sys/proc.h#164 edit Differences ... ==== //depot/projects/smpng/sys/sys/proc.h#164 (text+ko) ==== @@ -792,7 +792,8 @@ } while (0) #define _PHOLD(p) do { \ PROC_LOCK_ASSERT((p), MA_OWNED); \ - KASSERT(!((p)->p_flag & P_WEXIT), ("PHOLD of exiting process"));\ + KASSERT(!((p)->p_flag & P_WEXIT) || (p) == curproc, \ + ("PHOLD of exiting process")); \ (p)->p_lock++; \ if (((p)->p_sflag & PS_INMEM) == 0) \ faultin((p)); \