From 69d28474b7cef4816f6f97320547ae94b3325625 Mon Sep 17 00:00:00 2001 From: thorpej Date: Tue, 26 Sep 2000 23:59:23 +0000 Subject: [PATCH] PHOLD/PRELE around uvm_io() to user address space is unnecessary. There is nothing in the U-area that we need. --- sys/kern/kern_sysctl.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/sys/kern/kern_sysctl.c b/sys/kern/kern_sysctl.c index 4f327b87f6c9..b6cfca8726cb 100644 --- a/sys/kern/kern_sysctl.c +++ b/sys/kern/kern_sysctl.c @@ -1,4 +1,4 @@ -/* $NetBSD: kern_sysctl.c,v 1.80 2000/09/23 11:33:05 bjh21 Exp $ */ +/* $NetBSD: kern_sysctl.c,v 1.81 2000/09/26 23:59:23 thorpej Exp $ */ /*- * Copyright (c) 1982, 1986, 1989, 1993 @@ -1679,7 +1679,6 @@ sysctl_procargs(name, namelen, where, sizep, up) /* XXXCDC: how should locking work here? */ if ((p->p_flag & P_WEXIT) || (p->p_vmspace->vm_refcnt < 1)) return (EFAULT); - PHOLD(p); p->p_vmspace->vm_refcnt++; /* XXX */ /* @@ -1782,7 +1781,6 @@ sysctl_procargs(name, namelen, where, sizep, up) *sizep = len; done: - PRELE(p); uvmspace_free(p->p_vmspace); free(arg, M_TEMP);