exec: get rid of one vnode lock/unlock pair in do_execve
authormjg <mjg@FreeBSD.org>
Fri, 27 May 2016 15:03:38 +0000 (15:03 +0000)
committermjg <mjg@FreeBSD.org>
Fri, 27 May 2016 15:03:38 +0000 (15:03 +0000)
commit4a70fa3997a8f39ac1e4c7fef386c50b23ba22c5
tree57604f8070cc52305be45b95083072730198fc15
parent0f16f4c178177efe8a449c75a2fd30c006ae4a35
exec: get rid of one vnode lock/unlock pair in do_execve

The lock was temporarily dropped for vrele calls, but they can be
postponed to a point where the lock is not held in the first place.

While here shuffle other code not needing the lock.
sys/kern/kern_exec.c