cvs commit: src/sys/kern kern_umtx.c

Alan L. Cox alc at imimic.com
Sun May 25 14:19:32 PDT 2003


Jeff Roberson wrote:
> 
> jeff        2003/05/25 11:18:32 PDT
> 
>   FreeBSD src repository
> 
>   Modified files:
>     sys/kern             kern_umtx.c
>   Log:
>    - Create a new lock, umtx_lock, for use instead of the proc lock for
>      protecting the umtx queues.  We can't use the proc lock because we need
>      to hold the lock across calls to casuptr, which can fault.
> 
>   Approved by:    re
> 
>   Revision  Changes    Path
>   1.3       +13 -6     src/sys/kern/kern_umtx.c

In general, we can sleep on a fault.  Thus, you could be holding this
mutex at the time of a sleep.

Alan


More information about the cvs-src mailing list