From owner-cvs-src@FreeBSD.ORG Thu Aug 7 21:02:25 2008 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 E18F41065677; Thu, 7 Aug 2008 21:02:25 +0000 (UTC) (envelope-from jhb@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id CE34D8FC13; Thu, 7 Aug 2008 21:02:25 +0000 (UTC) (envelope-from jhb@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.2/8.14.2) with ESMTP id m77L2PYf021734; Thu, 7 Aug 2008 21:02:25 GMT (envelope-from jhb@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.2/8.14.1/Submit) id m77L2PSF021733; Thu, 7 Aug 2008 21:02:25 GMT (envelope-from jhb@repoman.freebsd.org) Message-Id: <200808072102.m77L2PSF021733@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to jhb@repoman.freebsd.org using -f From: John Baldwin Date: Thu, 7 Aug 2008 21:00:13 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: src/share/man/man9 condvar.9 sleep.9 src/sys/kern kern_condvar.c kern_synch.c 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: Thu, 07 Aug 2008 21:02:26 -0000 jhb 2008-08-07 21:00:13 UTC FreeBSD src repository Modified files: share/man/man9 condvar.9 sleep.9 sys/kern kern_condvar.c kern_synch.c Log: SVN rev 181394 on 2008-08-07 21:00:13Z by jhb Permit Giant to be passed as the explicit interlock either to msleep/mtx_sleep or the various cv_*wait*() routines. Currently, the "unlock" behavior of PDROP and cv_wait_unlock() with Giant is not permitted as it is will be confusing since Giant is fully unrecursed and unlocked during a thread sleep. This is handy for subsystems which wish to allow unlocked drivers to continue to use Giant such as CAM, the new TTY layer, and the new USB stack. CAM currently uses a hack that I told Scott to use because I really didn't want to permit this behavior, and the TTY and USB patches both have various patches to permit this. MFC after: 2 weeks Revision Changes Path 1.22 +18 -0 src/share/man/man9/condvar.9 1.63 +6 -0 src/share/man/man9/sleep.9 1.65 +50 -28 src/sys/kern/kern_condvar.c 1.313 +6 -2 src/sys/kern/kern_synch.c