From owner-freebsd-fs Fri Dec 6 17: 9:23 2002 Delivered-To: freebsd-fs@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2678037B401 for ; Fri, 6 Dec 2002 17:09:22 -0800 (PST) Received: from fledge.watson.org (fledge.watson.org [204.156.12.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id 986A043EC5 for ; Fri, 6 Dec 2002 17:09:21 -0800 (PST) (envelope-from robert@fledge.watson.org) Received: from fledge.watson.org (fledge.pr.watson.org [192.0.2.3]) by fledge.watson.org (8.12.6/8.12.5) with SMTP id gB719EBF003354; Fri, 6 Dec 2002 20:09:14 -0500 (EST) (envelope-from robert@fledge.watson.org) Date: Fri, 6 Dec 2002 20:09:14 -0500 (EST) From: Robert Watson X-Sender: robert@fledge.watson.org To: "David E. Cross" Cc: freebsd-fs@freebsd.org Subject: Re: openafs question In-Reply-To: <200211281128.gASBS2g04424@monica.cs.rpi.edu> 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 On Thu, 28 Nov 2002, David E. Cross wrote: > I've been working on the FreeBSD-OpenAFS port, and I seem to be down to > one last bug; I know what it is, I am just having trouble getting the > solution to it. Darwin appears to use a VSTANDARD flag to identify vnodes managed by the system vnode pool. vfree() on Darwin notices non-standard vnodes, and simply returns. I haven't read the OpenAFS code in ages -- certainly not since it gained Darwin support, so I don't know how exactly it handles determining it has been reclaimed (perhaps this happens as part of its VOP_INACTIVE() code, although they'd have to be careful about races there). We might be able to play much the same trick, although you'd want to do it very carefully so as to maintain the same locking invariants as standard vnodes, etc. Presumably changing to a model that doesn't involve non-standard vnode handling would involve extensive changes to OpenAFS? Robert N M Watson FreeBSD Core Team, TrustedBSD Projects robert@fledge.watson.org Network Associates Laboratories To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-fs" in the body of the message