From owner-freebsd-arch Thu Feb 21 0:40:10 2002 Delivered-To: freebsd-arch@freebsd.org Received: from rwcrmhc52.attbi.com (rwcrmhc52.attbi.com [216.148.227.88]) by hub.freebsd.org (Postfix) with ESMTP id AD74A37B404; Thu, 21 Feb 2002 00:40:07 -0800 (PST) Received: from InterJet.elischer.org ([12.232.206.8]) by rwcrmhc52.attbi.com (InterMail vM.4.01.03.27 201-229-121-127-20010626) with ESMTP id <20020221084007.LXHW1147.rwcrmhc52.attbi.com@InterJet.elischer.org>; Thu, 21 Feb 2002 08:40:07 +0000 Received: from localhost (localhost.elischer.org [127.0.0.1]) by InterJet.elischer.org (8.9.1a/8.9.1) with ESMTP id AAA66782; Thu, 21 Feb 2002 00:23:07 -0800 (PST) Date: Thu, 21 Feb 2002 00:23:05 -0800 (PST) From: Julian Elischer To: Matthew Dillon Cc: jhb@FreeBSD.ORG, arch@FreeBSD.ORG Subject: Re: that INVARIANT/ucred freeing stuff. In-Reply-To: <200202210755.g1L7t5F93967@apollo.backplane.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 If he REALLY wants it to be zero, then we can just hold it in another field, and zero the one that is referenced..i.e.on leaving the kernel: td->td_held_ucred == td->td_ucred; td->td_ucred = NULL; and on entering the kernel: td->td_ucred = td->td_held_ucred; td->td_held_ucred = NULL; if (td->td_ucred != p->p_ucred) cred_update_thread(td); On Wed, 20 Feb 2002, Matthew Dillon wrote: > > :I REALLY want to just rip it out! > : > :julian > > Ditto. I don't mind optioning it (i.e. option to recover zeroing code, > default to rip it out), but I would much prefer to simply see it gone. > > -Matt > Matthew Dillon > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-arch" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message