Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 15 Aug 2007 17:24:00 +0200
From:      Roman Divacky <rdivacky@freebsd.org>
To:        Nex Mon <sugarfreemonkey@gmail.com>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: questions on nonsleepable lock
Message-ID:  <20070815152400.GA69914@freebsd.org>
In-Reply-To: <1fc8a2a60708150210i73f8cb9evd60747bc3fb314e3@mail.gmail.com>
References:  <1fc8a2a60708142327p3f9ff079l345d47f9ceb6f489@mail.gmail.com> <20070815082857.GA59064@freebsd.org> <1fc8a2a60708150210i73f8cb9evd60747bc3fb314e3@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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.)



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