mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-23 10:14:55 +00:00
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:
parent
eb0fa74e92
commit
57b7fe337e
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=172011
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue