diff options
author | Jeff Roberson <jeff@FreeBSD.org> | 2002-07-06 07:00:01 +0000 |
---|---|---|
committer | Jeff Roberson <jeff@FreeBSD.org> | 2002-07-06 07:00:01 +0000 |
commit | 0b2ed1aef70a66f4b258fad3488624710dba5590 (patch) | |
tree | 85e4e496d113cb252366300989c7f835842a160a /sys/kern/imgact_aout.c | |
parent | e818064e986d46f07b0696142d2b616a555d2685 (diff) | |
download | src-0b2ed1aef70a66f4b258fad3488624710dba5590.tar.gz src-0b2ed1aef70a66f4b258fad3488624710dba5590.zip |
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
Notes
Notes:
svn path=/head/; revision=99487
Diffstat (limited to 'sys/kern/imgact_aout.c')
-rw-r--r-- | sys/kern/imgact_aout.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/imgact_aout.c b/sys/kern/imgact_aout.c index 41ae8cfc0178..16629d11c2ae 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; |