Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 17 Feb 2006 18:28:35 GMT
From:      John Baldwin <jhb@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 91938 for review
Message-ID:  <200602171828.k1HISZjf046659@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
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);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200602171828.k1HISZjf046659>