From owner-freebsd-hackers@FreeBSD.ORG Wed Aug 15 15:24:06 2007 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0F29216A41B for ; Wed, 15 Aug 2007 15:24:06 +0000 (UTC) (envelope-from rdivacky@vlk.vlakno.cz) Received: from vlakno.cz (vlk.vlakno.cz [62.168.28.247]) by mx1.freebsd.org (Postfix) with ESMTP id B854413C4F3 for ; Wed, 15 Aug 2007 15:24:03 +0000 (UTC) (envelope-from rdivacky@vlk.vlakno.cz) Received: from localhost (localhost [127.0.0.1]) by vlakno.cz (Postfix) with ESMTP id E722A8C0FE6; Wed, 15 Aug 2007 17:24:01 +0200 (CEST) X-Virus-Scanned: amavisd-new at vlakno.cz Received: from vlakno.cz ([127.0.0.1]) by localhost (vlk.vlakno.cz [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id vTAoZoV1wLb2; Wed, 15 Aug 2007 17:24:00 +0200 (CEST) Received: from vlk.vlakno.cz (localhost [127.0.0.1]) by vlakno.cz (Postfix) with ESMTP id D9EC08C0FDE; Wed, 15 Aug 2007 17:24:00 +0200 (CEST) Received: (from rdivacky@localhost) by vlk.vlakno.cz (8.13.8/8.13.8/Submit) id l7FFO0TP069976; Wed, 15 Aug 2007 17:24:00 +0200 (CEST) (envelope-from rdivacky) Date: Wed, 15 Aug 2007 17:24:00 +0200 From: Roman Divacky To: Nex Mon Message-ID: <20070815152400.GA69914@freebsd.org> References: <1fc8a2a60708142327p3f9ff079l345d47f9ceb6f489@mail.gmail.com> <20070815082857.GA59064@freebsd.org> <1fc8a2a60708150210i73f8cb9evd60747bc3fb314e3@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1fc8a2a60708150210i73f8cb9evd60747bc3fb314e3@mail.gmail.com> User-Agent: Mutt/1.4.2.3i Cc: freebsd-hackers@freebsd.org Subject: Re: questions on nonsleepable lock X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Aug 2007 15:24:06 -0000 On Wed, Aug 15, 2007 at 05:10:48PM +0800, Nex Mon wrote: > thanks for your reply. > > i didn't use WITNESS. it is disabled. > > is their a list a list of which locks are sleepable and non-sleepable > in FreeBSD6.2? is sleeping triggered by a call to "sleep", IO operation > or a result of context switching by kernel? all locks except sx and Giant are nonsleepable, sleeping can be triggered by calling foo_sleep() and/or by calling a sleeping function (like io etc.)