diff options
author | jhb <jhb@FreeBSD.org> | 2007-08-29 21:17:11 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2007-08-29 21:17:11 +0000 |
commit | 7ec8dd9926ab5c3c2ebef9074ac3b1868f9f1c45 (patch) | |
tree | 8e2283c9916f79523b5c80d25aa0c699e1f84581 /sys | |
parent | d64c39104c067800a5e1195efb809ec9d81b0872 (diff) | |
download | FreeBSD-src-7ec8dd9926ab5c3c2ebef9074ac3b1868f9f1c45.zip FreeBSD-src-7ec8dd9926ab5c3c2ebef9074ac3b1868f9f1c45.tar.gz |
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
Diffstat (limited to 'sys')
-rw-r--r-- | sys/kern/kern_ktrace.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/sys/kern/kern_ktrace.c b/sys/kern/kern_ktrace.c index 0ca4a30..2b7ee33 100644 --- a/sys/kern/kern_ktrace.c +++ b/sys/kern/kern_ktrace.c @@ -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); |