From owner-freebsd-hackers Tue Sep 4 10:55: 2 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from mailman.zeta.org.au (mailman.zeta.org.au [203.26.10.16]) by hub.freebsd.org (Postfix) with ESMTP id 80C3437B407; Tue, 4 Sep 2001 10:54:55 -0700 (PDT) Received: from bde.zeta.org.au (bde.zeta.org.au [203.2.228.102]) by mailman.zeta.org.au (8.9.3/8.8.7) with ESMTP id DAA27863; Wed, 5 Sep 2001 03:54:51 +1000 Date: Wed, 5 Sep 2001 03:54:29 +1000 (EST) From: Bruce Evans X-X-Sender: To: Maxim Sobolev Cc: Poul-Henning Kamp , Brent Verner , , Subject: Re: Junior Kernel Hacker task: improve vnode->v_tag In-Reply-To: <200109041343.f84DhO097646@vega.vega.com> Message-ID: <20010905034832.N17574-100000@alphplex.bde.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Tue, 4 Sep 2001, Maxim Sobolev wrote: > > [neither Maxim Sobolev nor Brent Verner wrote] > > In message <20010904081337.A8968@rcfile.org>, Brent Verner writes: > > >#include > > > > > >I've done a /cursory/ look over how this v_tag is used. I'm not sure > > >this is a simple/clean as you propose, since this is used in the > > >IS_LOCKING_VFS macro, as well as in union_subr.c... > > > > Well, that is just too bad, because IS_LOCKING_VFS is wrong then. > > > > The places which inspect v_tag will have to be changed to use > > strcmp() then... > > I think that we can add a new vnode flag, say VCANLOCK, so that each > particular VFS can set it if it supports locking, which should allow > to remove pre-defined VFS list from the IS_LOCKING_VFS macro. I can > produce a patch if it sounds reasonably. Since IS_LOCKING_VFS() is a temporary kludge, the correct fix is to remove it (after fixing whatever it was for), not to add more cruft. Bruce To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message