From e6e370a7fe930e04cec38bcc2e06be127ed7ee02 Mon Sep 17 00:00:00 2001 From: Jeff Roberson Date: Sun, 4 Aug 2002 10:29:36 +0000 Subject: - 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 --- sys/compat/linux/linux_misc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sys/compat/linux/linux_misc.c') diff --git a/sys/compat/linux/linux_misc.c b/sys/compat/linux/linux_misc.c index 7eebf69518cb..d6259bc868f0 100644 --- a/sys/compat/linux/linux_misc.c +++ b/sys/compat/linux/linux_misc.c @@ -381,8 +381,9 @@ linux_uselib(struct thread *td, struct linux_uselib_args *args) goto cleanup; } + mp_fixme("Unlocked vflags access."); /* prevent more writers */ - vp->v_flag |= VTEXT; + vp->v_vflag |= VV_TEXT; /* * Check if file_offset page aligned. Currently we cannot handle -- cgit v1.2.3