From owner-freebsd-current Mon Feb 11 19:44: 5 2002 Delivered-To: freebsd-current@freebsd.org Received: from newman2.bestweb.net (newman2.bestweb.net [209.94.102.67]) by hub.freebsd.org (Postfix) with ESMTP id 71A8837B6AC; Mon, 11 Feb 2002 18:19:45 -0800 (PST) Received: from okeeffe.bestweb.net (okeefe.bestweb.net [209.94.100.110]) by newman2.bestweb.net (Postfix) with ESMTP id C4AF023356; Mon, 11 Feb 2002 21:18:35 -0500 (EST) Received: by okeeffe.bestweb.net (Postfix, from userid 0) id EB9659F021; Mon, 11 Feb 2002 21:13:02 -0500 (EST) Date: Sat, 9 Feb 2002 00:33:18 -0800 (PST) From: Julian Elischer To: John Baldwin Cc: current@freebsd.org Subject: RE: cred stuff.. Message-Id: <20020212021302.EB9659F021@okeeffe.bestweb.net> 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 On Fri, 8 Feb 2002, Julian Elischer wrote: > 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? In fact, if we had good atomic reference counting primatives, couldn't we just forget the locks entirely for this? > > 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 > 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