From 427f5f38922275a7bb218d1406eb9e0cb589eccf Mon Sep 17 00:00:00 2001 From: jeff Date: Sat, 6 Jul 2002 07:00:01 +0000 Subject: 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 --- sys/kern/imgact_aout.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/kern/imgact_aout.c') 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; -- cgit v1.1