PHOLD/PRELE around uvm_io() to user address space is unnecessary. There

is nothing in the U-area that we need.
This commit is contained in:
thorpej 2000-09-26 23:28:01 +00:00
parent 6bf2c525a2
commit 94a08f31b3
2 changed files with 2 additions and 6 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: procfs_cmdline.c,v 1.9 2000/06/28 02:44:07 mrg Exp $ */
/* $NetBSD: procfs_cmdline.c,v 1.10 2000/09/26 23:28:01 thorpej Exp $ */
/*
* Copyright (c) 1999 Jaromir Dolecek <dolecek@ics.muni.cz>
@ -107,7 +107,6 @@ procfs_docmdline(curp, p, pfs, uio)
free(arg, M_TEMP);
return (EFAULT);
}
PHOLD(p);
p->p_vmspace->vm_refcnt++; /* XXX */
/*
@ -186,7 +185,6 @@ procfs_docmdline(curp, p, pfs, uio)
/*
* Release the process.
*/
PRELE(p);
uvmspace_free(p->p_vmspace);
free(arg, M_TEMP);

View File

@ -1,4 +1,4 @@
/* $NetBSD: procfs_mem.c,v 1.25 2000/06/28 02:44:07 mrg Exp $ */
/* $NetBSD: procfs_mem.c,v 1.26 2000/09/26 23:28:01 thorpej Exp $ */
/*
* Copyright (c) 1993 Jan-Simon Pendry
@ -89,10 +89,8 @@ procfs_domem(curp, p, pfs, uio)
/* 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 */
error = uvm_io(&p->p_vmspace->vm_map, uio);
PRELE(p);
uvmspace_free(p->p_vmspace);
#ifdef PMAP_NEED_PROCWR