From owner-p4-projects@FreeBSD.ORG Fri Feb 17 18:28: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 6B55616A423; Fri, 17 Feb 2006 18:28:36 +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 4111D16A420 for ; Fri, 17 Feb 2006 18:28:36 +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 0DAEE43D46 for ; Fri, 17 Feb 2006 18:28:36 +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 k1HISZ9S046662 for ; Fri, 17 Feb 2006 18:28:35 GMT (envelope-from jhb@freebsd.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id k1HISZjf046659 for perforce@freebsd.org; Fri, 17 Feb 2006 18:28:35 GMT (envelope-from jhb@freebsd.org) Date: Fri, 17 Feb 2006 18:28:35 GMT Message-Id: <200602171828.k1HISZjf046659@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 91938 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 18:28:37 -0000 http://perforce.freebsd.org/chv.cgi?CH=91938 Change 91938 by jhb@jhb_twclab on 2006/02/17 18:27:53 Compile. Affected files ... .. //depot/projects/smpng/sys/kern/sys_process.c#50 edit Differences ... ==== //depot/projects/smpng/sys/kern/sys_process.c#50 (text+ko) ==== @@ -212,19 +212,19 @@ int proc_rwmem(struct proc *p, struct uio *uio) { - struct vmspace *vm; vm_map_t map; vm_object_t backing_object, object = NULL; vm_offset_t pageno = 0; /* page number */ vm_prot_t reqprot; - int error, refcnt, writing; + int error, writing; /* * Assert that someone has locked this vmspace. (Should be * curthread but we can't assert that.) This keeps the process * from exiting out from under us until this operation completes. */ - KASSERT(p->p_lock >= 1); + KASSERT(p->p_lock >= 1, ("%s: process %p (pid %d) not held", __func__, + p, p->p_pid)); /* * The map we want... @@ -1035,7 +1035,6 @@ fail: PROC_UNLOCK(p); -fail_noproc: if (proctree_locked) sx_xunlock(&proctree_lock); return (error);