From owner-p4-projects@FreeBSD.ORG Fri Feb 17 16:44:37 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 6D38116A46A; Fri, 17 Feb 2006 16:44:37 +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 0883416A42D for ; Fri, 17 Feb 2006 16:44:37 +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 90FB843D4C for ; Fri, 17 Feb 2006 16:44:25 +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 k1HGiPND034993 for ; Fri, 17 Feb 2006 16:44:25 GMT (envelope-from jhb@freebsd.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id k1HGiPbx034989 for perforce@freebsd.org; Fri, 17 Feb 2006 16:44:25 GMT (envelope-from jhb@freebsd.org) Date: Fri, 17 Feb 2006 16:44:25 GMT Message-Id: <200602171644.k1HGiPbx034989@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 91932 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, 17 Feb 2006 16:44:38 -0000 http://perforce.freebsd.org/chv.cgi?CH=91932 Change 91932 by jhb@jhb_slimer on 2006/02/17 16:43:33 PHOLD around proc_rwmem(). Affected files ... .. //depot/projects/smpng/sys/ia64/ia64/machdep.c#100 edit Differences ... ==== //depot/projects/smpng/sys/ia64/ia64/machdep.c#100 (text+ko) ==== @@ -1097,6 +1097,8 @@ r->rnat = (bspst > kstk && (bspst & 0x1ffL) < (kstk & 0x1ffL)) ? *(uint64_t*)(kstk | 0x1f8L) : rnat; } else { + /* XXX: What if P_WEXIT is set? */ + PHOLD(td->td_proc); iov.iov_base = (void*)(uintptr_t)kstk; iov.iov_len = r->ndirty; uio.uio_iov = &iov; @@ -1114,6 +1116,7 @@ */ if (uio.uio_resid != 0 && error == 0) error = ENOSPC; + PRELE(td->td_proc); } r->bspstore += r->ndirty;