From owner-cvs-all Tue Sep 24 19:22:23 2002 Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E98A637B401; Tue, 24 Sep 2002 19:22:21 -0700 (PDT) Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id AEF9C43E42; Tue, 24 Sep 2002 19:22:21 -0700 (PDT) (envelope-from jeff@FreeBSD.org) Received: from freefall.freebsd.org (jeff@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.6/8.12.6) with ESMTP id g8P2MLCo033050; Tue, 24 Sep 2002 19:22:21 -0700 (PDT) (envelope-from jeff@freefall.freebsd.org) Received: (from jeff@localhost) by freefall.freebsd.org (8.12.6/8.12.6/Submit) id g8P2MLDi033049; Tue, 24 Sep 2002 19:22:21 -0700 (PDT) Message-Id: <200209250222.g8P2MLDi033049@freefall.freebsd.org> From: Jeff Roberson Date: Tue, 24 Sep 2002 19:22:21 -0700 (PDT) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/kern vfs_subr.c src/sys/sys vnode.h X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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