From owner-freebsd-fs Wed Oct 3 14:58:53 2001 Delivered-To: freebsd-fs@freebsd.org Received: from flood.ping.uio.no (flood.ping.uio.no [129.240.78.31]) by hub.freebsd.org (Postfix) with ESMTP id 62C2937B401 for ; Wed, 3 Oct 2001 14:58:49 -0700 (PDT) Received: (from des@localhost) by flood.ping.uio.no (8.9.3/8.9.3) id XAA48714; Wed, 3 Oct 2001 23:58:45 +0200 (CEST) (envelope-from des@ofug.org) X-URL: http://www.ofug.org/~des/ X-Disclaimer: The views expressed in this message do not necessarily coincide with those of any organisation or company with which I am or have been affiliated. To: "David E. Cross" Cc: freebsd-fs@FreeBSD.ORG Subject: Re: OpenAFS References: <200110032009.QAA58984@cs.rpi.edu> From: Dag-Erling Smorgrav Date: 03 Oct 2001 23:58:44 +0200 In-Reply-To: <200110032009.QAA58984@cs.rpi.edu> Message-ID: Lines: 23 User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-fs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org "David E. Cross" writes: > Ugh, I have read all of those. I am not left with a good understanding > of things like VOP_LOCK (when it is needed... based on some previous > discussions various operations give you the vnode locked or unlocked and > expect it returned in a state that may not be how they handed it to you, etc) The man pages for the individual VOPs document this: LOCKS VOP_OPEN(9) expects vp to be locked on entry and will leave it locked on return. VOP_CLOSE(9) expects at least a reference to be associated with the vnode and does not care whether the vnode is locked or not. The lock and ref erence state is left unchanged on return. Note that vn_close expects an unlocked, referenced vnode and will dereference the vnode prior to returning. For quick reference, consult src/sys/kern/vnode_if.src. DES -- Dag-Erling Smorgrav - des@ofug.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-fs" in the body of the message