From owner-cvs-src@FreeBSD.ORG Tue Nov 20 05:48:05 2007 Return-Path: Delivered-To: cvs-src@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CADCC16A419 for ; Tue, 20 Nov 2007 05:48:05 +0000 (UTC) (envelope-from wearabnet@yahoo.ca) Received: from web33711.mail.mud.yahoo.com (web33711.mail.mud.yahoo.com [68.142.201.208]) by mx1.freebsd.org (Postfix) with SMTP id 7354013C459 for ; Tue, 20 Nov 2007 05:48:05 +0000 (UTC) (envelope-from wearabnet@yahoo.ca) Received: (qmail 16001 invoked by uid 60001); 20 Nov 2007 05:47:54 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.ca; h=X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type:Message-ID; b=bb1/bxcYlLY/Izj/xwrLrL9dAmB5A9ui0xXW+0Zee7pOu5GvqDTP9VrAq5lh3hbCvS3U8oDQgCnHE/PvwCcyMCK695LoIXKi1dOq8pD4wiKVb+T+bCD+dj2DOMT6xH7bcvypdjk0KLvAOKF0VLK6r1pjqZ2MnHSenoHdj6ORdqg=; X-YMail-OSG: kcD2zqoVM1kaKz0Kq_6m292zvoxj_b_MlM1qPNB53ma3umnDOqdwM0dRIeu7XNWkbZwgL0WQBpVRbOaY_zyu8VVrwwDl6C7a03wxM7_5DLvsBoR61IU- Received: from [212.77.203.38] by web33711.mail.mud.yahoo.com via HTTP; Mon, 19 Nov 2007 21:47:53 PST X-Mailer: YahooMailRC/818.27 YahooMailWebService/0.7.157 Date: Mon, 19 Nov 2007 21:47:53 -0800 (PST) From: Abdullah Ibn Hamad Al-Marri To: Attilio Rao , cvs-src@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Message-ID: <13944.15643.qm@web33711.mail.mud.yahoo.com> Cc: Subject: Re: cvs commit: src/sys/kern kern_timeout.c src/sys/sys callout.h X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Nov 2007 05:48:05 -0000 Thank you! Regards, -Abdullah Ibn Hamad Al-Marri Arab Portal http://www.WeArab.Net/ ----- Original Message ---- > From: Attilio Rao > 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