Date: Tue, 24 Sep 2002 19:22:21 -0700 (PDT) From: Jeff Roberson <jeff@FreeBSD.org> To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/kern vfs_subr.c src/sys/sys vnode.h Message-ID: <200209250222.g8P2MLDi033049@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
jeff 2002/09/24 19:22:21 PDT Modified files: sys/kern vfs_subr.c sys/sys vnode.h Log: - Lock down the syncer with sync_mtx. - Enable vfs_badlock_mutex by default. - Assert that the vp is locked in VOP_UNLOCK. - Use standard interlock macros in remaining code. - Correct a race in getnewvnode(). - Lock access to v_numoutput with interlock. - Lock access to buf lists and splay tree with interlock. - Add VOP and VI asserts. - Lock b_vnbufs with the vnode interlock. - Add vrefcnt() for callers who want to retreive the vnode ref without holding a lock. Add a comment that describes when this is safe. - Add vholdl() and vdropl() so that callers who already own the interlock can avoid race conditions and unnecessary unlocking. - Move the VOP_GETATTR() in vflush() into the WRITECLOSE conditional case. - Hold the interlock before droping the mntlist_mtx in vflush() to avoid a race. - Fix locking in vfs_msync(). Revision Changes Path 1.406 +188 -74 src/sys/kern/vfs_subr.c 1.211 +3 -0 src/sys/sys/vnode.h To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200209250222.g8P2MLDi033049>