Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 16 Aug 2004 11:59:09 -0400
From:      John Baldwin <jhb@FreeBSD.org>
To:        freebsd-hackers@FreeBSD.org
Cc:        Roman Kurakin <rik@cronyx.ru>
Subject:   Re: LOR
Message-ID:  <200408161159.11250.jhb@FreeBSD.org>
In-Reply-To: <4120A660.9070909@cronyx.ru>
References:  <4120A660.9070909@cronyx.ru>

next in thread | previous in thread | raw e-mail | index | archive | help
On Monday 16 August 2004 08:19 am, Roman Kurakin wrote:
> Hi,
>
>     Question to gurus. Does witness keep in mind lock recursion when
> it checks for LORs.

Well, I'm not sure if I understand exactly what you are asking, but witness 
only does lock order checks when you first acquire the lock.  Any recursive 
locks will skip the order checking altogether since recursive acquires can 
never block.  Similarly, trylock operations also stick order checks 
altogether since they can never block either.

-- 
John Baldwin <jhb@FreeBSD.org>  <><  http://www.FreeBSD.org/~jhb/
"Power Users Use the Power to Serve"  =  http://www.FreeBSD.org



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