Date: Mon, 14 Nov 2005 19:30:09 +0000 (UTC) From: Robert Watson <rwatson@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/kern kern_ktrace.c Message-ID: <200511141930.jAEJU9le043351@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
rwatson 2005-11-14 19:30:09 UTC
FreeBSD src repository
Modified files:
sys/kern kern_ktrace.c
Log:
In ktr_getrequest(), acquire ktrace_mtx earlier -- while the race
currently present is minor and offers no real semantic issues, it also
doesn't make sense since an earlier lockless check has already
occurred. Also hold the mutex longer, over a manipulation of
per-process ktrace state, which requires synchronization.
MFC after: 1 month
Pointed out by: jhb
Revision Changes Path
1.105 +3 -2 src/sys/kern/kern_ktrace.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200511141930.jAEJU9le043351>
