From owner-freebsd-arch Mon Nov 12 15:16:24 2001 Delivered-To: freebsd-arch@freebsd.org Received: from raven.mail.pas.earthlink.net (raven.mail.pas.earthlink.net [207.217.120.39]) by hub.freebsd.org (Postfix) with ESMTP id 803E837B417; Mon, 12 Nov 2001 15:16:22 -0800 (PST) Received: from dialup-209.245.136.188.dial1.sanjose1.level3.net ([209.245.136.188] helo=mindspring.com) by raven.mail.pas.earthlink.net with esmtp (Exim 3.33 #1) id 163QJR-0007Wq-00; Mon, 12 Nov 2001 15:16:22 -0800 Message-ID: <3BF05877.B9E886D8@mindspring.com> Date: Mon, 12 Nov 2001 15:17:11 -0800 From: Terry Lambert Reply-To: tlambert2@mindspring.com X-Mailer: Mozilla 4.7 [en]C-CCK-MCD {Sony} (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: Matthew Dillon Cc: Robert Watson , freebsd-arch@FreeBSD.ORG Subject: Re: cur{thread/proc}, or not. References: <3BF05241.74F895EF@mindspring.com> <200111122254.fACMsNd06845@apollo.backplane.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Matthew Dillon wrote: > Yes, I believe this is how credentials work. I looked at > the code about 6 months ago. We should not have to do any > locking of the credential stuff, only simple mutexing > around the ref counter. That is how it should work > is how I believe it currently works. FWIW: Robert had implied that more heavyweight locking of the process (or thread) structure was necessary to access the credential, which is correct, if you are referencing it that was. The part of me you quoted here was a conclusion based on using direct references to value-stable credentials rather than value-colatile proc or thread structs. It only works to refute Roberts argument if you include that; it's not correct to conclude that the way it currently works is sufficient in the face of the proc/thread dereference issues that Robert was trying to address (and which I tried to address by avoiding entirely). -- Terry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message