Partially revert the previous change. I failed to notice that where

ktruserret() is invoked, an unlocked check of  the per-process queue
is performed inline, thus, we don't lock the ktrace_sx on every userret().

Pointy hat to:	jhb
Approved by:	re (kensmith)
Pointy hat recovered from:	rwatson
This commit is contained in:
jhb 2007-08-29 21:17:11 +00:00
parent d64c39104c
commit 7ec8dd9926

View File

@ -444,8 +444,6 @@ void
ktruserret(struct thread *td)
{
if (STAILQ_EMPTY(&td->td_proc->p_ktr))
return;
ktrace_enter(td);
sx_xlock(&ktrace_sx);
ktr_drain(td);