Date: Wed, 4 Apr 2001 09:53:33 -0700 (PDT) From: Matt Dillon <dillon@earth.backplane.com> To: Robert Watson <rwatson@FreeBSD.ORG> Cc: Alfred Perlstein <bright@wintelcom.net>, Brian Somers <brian@Awfulhak.org>, freebsd-arch@FreeBSD.ORG Subject: Re: Eliminate crget() from nfs kernel code? Message-ID: <200104041653.f34GrX188215@earth.backplane.com> References: <Pine.NEB.3.96L.1010404113251.14983A-100000@fledge.watson.org>
next in thread | previous in thread | raw e-mail | index | archive | help
:For those interested in giving the p->p_ucred version a try, the simply :patch is below. It works between FreeBSD boxes, and my tests against :Solaris 5.5. Unfortunately, my remote NFS test box already has interop :problems with Linux due to the new mount_nfs that I haven't applied :patches to yet, so I can't test that case. : :Robert N M Watson FreeBSD Core Team, TrustedBSD Project :robert@fledge.watson.org NAI Labs, Safeport Network Services It occurs to me that we may have a general problem with p->p_ucred here. For KSEs to work, processes will not be able to assume that they 'own' p->p_ucred if/when they block. What happens if one thread is blocked in a system call that is using p->p_ucred directly without bumping its ref count and another thread goes in and changes the cred? -Matt To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200104041653.f34GrX188215>