summaryrefslogtreecommitdiffstats
path: root/sys/kern/imgact_aout.c
diff options
context:
space:
mode:
authorjeff <jeff@FreeBSD.org>2002-07-06 07:00:01 +0000
committerjeff <jeff@FreeBSD.org>2002-07-06 07:00:01 +0000
commit427f5f38922275a7bb218d1406eb9e0cb589eccf (patch)
tree85e4e496d113cb252366300989c7f835842a160a /sys/kern/imgact_aout.c
parent68e01986120fe7577fe96c40f9eaaff18f1ee461 (diff)
downloadFreeBSD-src-427f5f38922275a7bb218d1406eb9e0cb589eccf.zip
FreeBSD-src-427f5f38922275a7bb218d1406eb9e0cb589eccf.tar.gz
Clean up execve locking:
- Grab the vnode object early in exec when we still have the vnode lock. - Cache the object in the image_params. - Make use of the cached object in imgact_*.c
Diffstat (limited to 'sys/kern/imgact_aout.c')
-rw-r--r--sys/kern/imgact_aout.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/imgact_aout.c b/sys/kern/imgact_aout.c
index 41ae8cf..16629d1 100644
--- a/sys/kern/imgact_aout.c
+++ b/sys/kern/imgact_aout.c
@@ -186,9 +186,9 @@ exec_aout_imgact(imgp)
vmspace = imgp->proc->p_vmspace;
vp = imgp->vp;
+ object = imgp->object;
map = &vmspace->vm_map;
vm_map_lock(map);
- VOP_GETVOBJECT(vp, &object);
vm_object_reference(object);
text_end = virtual_offset + a_out->a_text;
OpenPOWER on IntegriCloud