cvs commit: src/sys/kern kern_ktr.c kern_ktrace.c kern_sig.c src/sys/sys ktrace.h proc.h

John Baldwin jhb at FreeBSD.org
Mon Jun 9 11:03:49 PDT 2003


On 09-Jun-2003 John Baldwin wrote:
> jhb         2003/06/09 10:38:33 PDT
> 
>   FreeBSD src repository
> 
>   Modified files:
>     sys/kern             kern_ktr.c kern_ktrace.c kern_sig.c 
>     sys/sys              ktrace.h proc.h 
>   Log:
>   - Add a td_pflags field to struct thread for private flags accessed only by
>     curthread.  Unlike td_flags, this field does not need any locking.
>   - Replace the td_inktr and td_inktrace variables with equivalent private
>     thread flags.
>   - Move TDF_OLDMASK over to the private flags field so it no longer requires
>     sched_lock.

I've also moved P_COWINPROGRESS to TDP_COWINPROGRESS in the jhb_proc
patch and intend to commit that if no one has any objections.  The
P_COWINPROGRESS only has thread-wide scope by my reading and it is
the only remaining user of p_flag whose write accesses are not locked
by the proc lock.  I'd rather move it and not need locks for it then
add a bunch of proc locks.

-- 

John Baldwin <jhb at FreeBSD.org>  <><  http://www.FreeBSD.org/~jhb/
"Power Users Use the Power to Serve!"  -  http://www.FreeBSD.org/


More information about the cvs-src mailing list