From owner-freebsd-current Fri Feb 8 23: 0:20 2002 Delivered-To: freebsd-current@freebsd.org Received: from rwcrmhc51.attbi.com (rwcrmhc51.attbi.com [204.127.198.38]) by hub.freebsd.org (Postfix) with ESMTP id 4619637B405; Fri, 8 Feb 2002 23:00:18 -0800 (PST) Received: from InterJet.elischer.org ([12.232.206.8]) by rwcrmhc51.attbi.com (InterMail vM.4.01.03.27 201-229-121-127-20010626) with ESMTP id <20020209070017.VZUJ1672.rwcrmhc51.attbi.com@InterJet.elischer.org>; Sat, 9 Feb 2002 07:00:17 +0000 Received: from localhost (localhost.elischer.org [127.0.0.1]) by InterJet.elischer.org (8.9.1a/8.9.1) with ESMTP id WAA05552; Fri, 8 Feb 2002 22:47:59 -0800 (PST) Date: Fri, 8 Feb 2002 22:47:58 -0800 (PST) From: Julian Elischer To: John Baldwin Cc: current@freebsd.org Subject: RE: cred stuff.. In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG John, (peter? others?) How is it that getting a ucred reference is guarded by PROC_LOCK(p) but freeing it is guarded by mtx_lock(&Giant); ? Call me naive, but shouldn't they be guarded by the same thing? Julian On Fri, 8 Feb 2002, Julian Elischer wrote: > I'm a little worried about invariants because the behaviour when > INVARIANTS is set wil be different to teh behaviour when it is off, which > is 'strange' to say the least. Normally the behaviour si the same but you > just check for invariant conditions. > > > On Fri, 8 Feb 2002, John Baldwin wrote: > > > > > On 08-Feb-02 Julian Elischer wrote: > > > > > > I'd like to commit the code to keep the ucred across userland, > > > with the code to clear it to NULL kept under DEBUG ifdefs. > > > > Use INVARIANTS for the ifdef macro name, but sure. > > > > -- > > > > John Baldwin <>< http://www.FreeBSD.org/~jhb/ > > "Power Users Use the Power to Serve!" - http://www.FreeBSD.org/ > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-current" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message