diff options
author | Alan Cox <alc@FreeBSD.org> | 2003-06-08 07:14:30 +0000 |
---|---|---|
committer | Alan Cox <alc@FreeBSD.org> | 2003-06-08 07:14:30 +0000 |
commit | fd0cc9a8628d8ea82b2889d6a918ff6c309ad389 (patch) | |
tree | df83b652d46410b4d1a9d9ced43ed00ba0a9aafd /sys/kern/kern_exec.c | |
parent | e1095ead467c97170802e0297177a88f6fd54534 (diff) | |
download | src-fd0cc9a8628d8ea82b2889d6a918ff6c309ad389.tar.gz src-fd0cc9a8628d8ea82b2889d6a918ff6c309ad389.zip |
Lock the vm object when performing vm_page_grab().
Notes
Notes:
svn path=/head/; revision=116013
Diffstat (limited to 'sys/kern/kern_exec.c')
-rw-r--r-- | sys/kern/kern_exec.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/kern_exec.c b/sys/kern/kern_exec.c index a4531527ec98..e9789b9cae08 100644 --- a/sys/kern/kern_exec.c +++ b/sys/kern/kern_exec.c @@ -747,9 +747,9 @@ exec_map_first_page(imgp) } VOP_GETVOBJECT(imgp->vp, &object); - + VM_OBJECT_LOCK(object); ma[0] = vm_page_grab(object, 0, VM_ALLOC_NORMAL | VM_ALLOC_RETRY); - + VM_OBJECT_UNLOCK(object); if ((ma[0]->valid & VM_PAGE_BITS_ALL) != VM_PAGE_BITS_ALL) { initial_pagein = VM_INITIAL_PAGEIN; if (initial_pagein > object->size) |