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:
John Baldwin 2007-08-29 21:17:11 +00:00
parent eb0fa74e92
commit 57b7fe337e
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=172011

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);