On 12-Sep-01 Ruslan Ermilov wrote:
> Hello Julian!
>
> Could you please post the list of all changed and new kernel
> API functions so that -doc guys can keep up with this?
>
> Like suser_td(9), etc.
suser_td() is going away. p_ucred in the KSE kernel is still per-process, and
we need to hold the proc lock while we call suser() as a result (and we have to
hold it for the result of the test, so pushing the lock down into suser_td() is
not feasible). Thus, code that does this:
error = suser_td(td);
if (error)
return (error);
is going to become this:
struct proc *p = td->td_proc;
PROC_LOCK(p);
error = suser(p);
if (error) {
PROC_UNLOCK(p);
return;
}
.... /* do stuff */
PROC_UNLOCK(p);
I originally asked that the suser_td() changes not be made so that the locking
code doesn't have to go back all of them out again thus increasing the overall
diff size.
--
John Baldwin <[EMAIL PROTECTED]> -- http://www.FreeBSD.org/~jhb/
PGP Key: http://www.baldwin.cx/~john/pgpkey.asc
"Power Users Use the Power to Serve!" - http://www.FreeBSD.org/
To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message