Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 19 Nov 2007 21:47:53 -0800 (PST)
From:      Abdullah Ibn Hamad Al-Marri <wearabnet@yahoo.ca>
To:        Attilio Rao <attilio@FreeBSD.org>, cvs-src@FreeBSD.org
Subject:   Re: cvs commit: src/sys/kern kern_timeout.c src/sys/sys callout.h
Message-ID:  <13944.15643.qm@web33711.mail.mud.yahoo.com>

next in thread | raw e-mail | index | archive | help
Thank you!
 
Regards, 
-Abdullah Ibn Hamad Al-Marri
Arab Portal
http://www.WeArab.Net/

----- Original Message ----
> From: Attilio Rao <attilio@FreeBSD.org>
> To: src-committers@FreeBSD.org; cvs-src@FreeBSD.org; cvs-all@FreeBSD.org
> Sent: Tuesday, November 20, 2007 3:37:46 AM
> Subject: cvs commit: src/sys/kern kern_timeout.c src/sys/sys callout.h
> 
> attilio     2007-11-20 00:37:45 UTC
> 
>   FreeBSD src repository
> 
>   Modified files:
>     sys/kern             kern_timeout.c 
>     sys/sys              callout.h 
>   Log:
>   Add the function callout_init_rw() to callout facility in order
> to
> 
 use
>   rwlocks in conjuction with callouts.  The function does
> basically
> 
 what
>   callout_init_mtx() alredy does with the difference of using a rwlock
>   as extra argument.
>   CALLOUT_SHAREDLOCK flag can be used, now, in order to acquire
> the
> 
 lock only
>   in read mode when running the callout handler.  It has no
> effects
> 
 when used
>   in conjuction with mtx.
>   
>   In order to implement this, underlying callout functions have
> been
> 
 made
>   completely lock type-unaware, so accordingly with this, sysctl
>   debug.to_avg_mtxcalls is now changed in the generic
>   debug.to_avg_lockcalls.
>   
>   Note: currently the allowed lock classes are mutexes and
> rwlocks
> 
 because
>   callout handlers run in softclock swi, so they cannot sleep and they
>   cannot acquire sleepable locks like sx or lockmgr.
>   
>   Requested by: kmacy, pjd, rwatson
>   Reviewed by: jhb
>   
>   Revision  Changes    Path
>   1.107     +57 -52    src/sys/kern/kern_timeout.c
>   1.32      +10 -3     src/sys/sys/callout.h
> _______________________________________________
> cvs-src@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/cvs-src
> To unsubscribe, send any mail to "cvs-src-unsubscribe@freebsd.org"
> 





      ____________________________________________________________________________________
Get easy, one-click access to your favorites. 
Make Yahoo! your homepage.
http://www.yahoo.com/r/hs 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?13944.15643.qm>