diff options
author | jeff <jeff@FreeBSD.org> | 2002-08-04 10:29:36 +0000 |
---|---|---|
committer | jeff <jeff@FreeBSD.org> | 2002-08-04 10:29:36 +0000 |
commit | 02517b6731ab2da44ce9b49260429744cf0114d5 (patch) | |
tree | e889f56910bf98cbee3be239655a9e4bbb928b2e /sys/alpha | |
parent | a03ca02ee99a255a2c14a75ff8eb488960b13ea7 (diff) | |
download | FreeBSD-src-02517b6731ab2da44ce9b49260429744cf0114d5.zip FreeBSD-src-02517b6731ab2da44ce9b49260429744cf0114d5.tar.gz |
- Replace v_flag with v_iflag and v_vflag
- v_vflag is protected by the vnode lock and is used when synchronization
with VOP calls is needed.
- v_iflag is protected by interlock and is used for dealing with vnode
management issues. These flags include X/O LOCK, FREE, DOOMED, etc.
- All accesses to v_iflag and v_vflag have either been locked or marked with
mp_fixme's.
- Many ASSERT_VOP_LOCKED calls have been added where the locking was not
clear.
- Many functions in vfs_subr.c were restructured to provide for stronger
locking.
Idea stolen from: BSD/OS
Diffstat (limited to 'sys/alpha')
-rw-r--r-- | sys/alpha/osf1/imgact_osf1.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/alpha/osf1/imgact_osf1.c b/sys/alpha/osf1/imgact_osf1.c index 4eee3a7..3a640b4 100644 --- a/sys/alpha/osf1/imgact_osf1.c +++ b/sys/alpha/osf1/imgact_osf1.c @@ -188,15 +188,16 @@ exec_osf1_imgact(struct image_params *imgp) imgp->interpreted = 0; imgp->proc->p_sysent = &osf1_sysvec; + mp_fixme("Unlocked writecount and v_vflag access."); if ((eap->tsize != 0 || eap->dsize != 0) && imgp->vp->v_writecount != 0) { #ifdef DIAGNOSTIC - if (imgp->vp->v_flag & VTEXT) - panic("exec: a VTEXT vnode has writecount != 0\n"); + if (imgp->vp->v_vflag & VV_TEXT) + panic("exec: a VV_TEXT vnode has writecount != 0\n"); #endif return ETXTBSY; } - imgp->vp->v_flag |= VTEXT; + imgp->vp->v_vflag |= VV_TEXT; /* set up text segment */ if ((error = vm_mmap(&vmspace->vm_map, &taddr, tsize, |