cvs commit: src/sys/sys proc.h

John Baldwin jhb at FreeBSD.org
Fri Nov 14 10:02:29 PST 2003


On 14-Nov-2003 John Baldwin wrote:
> jhb         2003/11/14 08:27:17 PST
> 
>   FreeBSD src repository
> 
>   Modified files:
>     sys/sys              proc.h 
>   Log:
>   Add a WITNESS_WARN() check to _STOPEVENT() since any _STOPEVENT() can
>   potentially sleep.  This should help find some bogus locking.

There is at least one place where sigacts locking trips this assertion.
I will try to work on cleaning up that and other problems that surface
today from this check.

I also need to add a KASSERT() to msleep/cv_wait* that we don't try
to sleep if we are already on a sleep queue.  It seems that using
ptrace can trip that as well. :(

-- 

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