From owner-freebsd-fs Fri Oct 5 11:42: 1 2001 Delivered-To: freebsd-fs@freebsd.org Received: from fledge.watson.org (fledge.watson.org [204.156.12.50]) by hub.freebsd.org (Postfix) with ESMTP id 784CC37B409 for ; Fri, 5 Oct 2001 11:41:58 -0700 (PDT) Received: from fledge.watson.org (robert@fledge.pr.watson.org [192.0.2.3]) by fledge.watson.org (8.11.6/8.11.5) with SMTP id f95IfJB54558; Fri, 5 Oct 2001 14:41:20 -0400 (EDT) (envelope-from robert@fledge.watson.org) Date: Fri, 5 Oct 2001 14:41:19 -0400 (EDT) From: Robert Watson X-Sender: robert@fledge.watson.org To: Dag-Erling Smorgrav Cc: "David E. Cross" , freebsd-fs@FreeBSD.ORG Subject: Re: OpenAFS In-Reply-To: Message-ID: 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 The man pages are not known either for their technical depth, nor (it turns out) their correctness. Likewise, the locking statements in vnode_if.src were fairly out of sync last I checked. If that's changed, and I'm simply dated, I'm delighted to hear that :-). Robert N M Watson FreeBSD Core Team, TrustedBSD Project robert@fledge.watson.org NAI Labs, Safeport Network Services On 3 Oct 2001, Dag-Erling Smorgrav wrote: > "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 > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-fs" in the body of the message