Date: Thu, 28 Mar 2002 10:45:11 -0800 (PST) From: Julian Elischer <julian@elischer.org> To: Bruce Evans <bde@zeta.org.au> Cc: Robert Watson <rwatson@FreeBSD.ORG>, John Baldwin <jhb@FreeBSD.ORG>, smp@FreeBSD.ORG Subject: Re: suser() API change patch Message-ID: <Pine.BSF.4.21.0203281043520.53382-100000@InterJet.elischer.org> In-Reply-To: <20020328211326.P7433-100000@gamplex.bde.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 28 Mar 2002, Bruce Evans wrote: > suser(thread, flag) could still exist (named somthing like suser_flag()) > if it is used enough to justify it. My main point is that the flag is > rarely used, so the interface shouldn't be bloated to pass it. > > Another point: td->td_ucred can only be safely used without locking > if td is curthread. Our current code mostly assumes this. suser(td) > can easily check that td is curthread, but this is a silly reason to > use a bloated interface. It is just bug for bug compatible with passing > thread pointers around a lot. Bruce does have a point.. > > Bruce > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-smp" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-smp" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.21.0203281043520.53382-100000>