diff options
author | tegge <tegge@FreeBSD.org> | 1997-11-14 22:57:46 +0000 |
---|---|---|
committer | tegge <tegge@FreeBSD.org> | 1997-11-14 22:57:46 +0000 |
commit | 5ba8a227e1deb4c8882f7deea2e0712e17b9be7f (patch) | |
tree | 0233cd6374e386231ac58ba341dc182494447e40 /sys/fs/procfs/procfs_map.c | |
parent | e51ee7cdf95292935ffbe39942f34733e1fb97ff (diff) | |
download | FreeBSD-src-5ba8a227e1deb4c8882f7deea2e0712e17b9be7f.zip FreeBSD-src-5ba8a227e1deb4c8882f7deea2e0712e17b9be7f.tar.gz |
Don't try to obtain an excluive lock on the vm map, since a deadlock might
occur if the process owning the map is wiring pages.
Diffstat (limited to 'sys/fs/procfs/procfs_map.c')
-rw-r--r-- | sys/fs/procfs/procfs_map.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/fs/procfs/procfs_map.c b/sys/fs/procfs/procfs_map.c index 5c12b19..184cee9 100644 --- a/sys/fs/procfs/procfs_map.c +++ b/sys/fs/procfs/procfs_map.c @@ -36,7 +36,7 @@ * * @(#)procfs_status.c 8.3 (Berkeley) 2/17/94 * - * $Id: procfs_map.c,v 1.11 1997/03/24 11:24:41 bde Exp $ + * $Id: procfs_map.c,v 1.12 1997/08/02 14:32:12 bde Exp $ */ #include <sys/param.h> @@ -88,7 +88,7 @@ procfs_domap(curp, p, pfs, uio) error = 0; if (map != &curproc->p_vmspace->vm_map) - vm_map_lock(map); + vm_map_lock_read(map); for (entry = map->header.next; ((uio->uio_resid > 0) && (entry != &map->header)); entry = entry->next) { @@ -160,7 +160,7 @@ case OBJT_DEVICE: break; } if (map != &curproc->p_vmspace->vm_map) - vm_map_unlock(map); + vm_map_unlock_read(map); return error; } |