Date: Sat, 13 Apr 2002 16:28:23 -0700 (PDT) From: John Baldwin <jhb@FreeBSD.org> To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/kern kern_resource.c Message-ID: <200204132328.g3DNSNk13897@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
jhb 2002/04/13 16:28:23 PDT Modified files: sys/kern kern_resource.c Log: - Change donice() to take a thread as the first argument instead of a process so it can use td_ucred. - Require the target process of donice() to be locked when donice() is called. - Use td_ucred. - Lock the target process of p_cansee() and while reading the credentials of a process. - Change the logic of rtprio() slightly so it does it's copyin() if needed prior to locking the target process. - rtprio() no longer needs Giant. In theory with full KSE it would still need Giant to protect p_ucred of curproc for the p_canfoo() functions but p_canfoo() will be changing to using td_ucred of curthread before full KSE hits the tree. Revision Changes Path 1.103 +40 -37 src/sys/kern/kern_resource.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200204132328.g3DNSNk13897>