Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 25 Nov 2001 02:07:23 +0100
From:      Maxime Henrion <mux@qualys.com>
To:        current@FreeBSD.org
Cc:        Hiten Pandya <hitmaster2k@yahoo.com>
Subject:   Re: some info (new)
Message-ID:  <20011125020723.C831@nebula.noos.fr>
In-Reply-To: <20011125005921.45291.qmail@web21104.mail.yahoo.com>
References:  <20011125015325.B831@nebula.noos.fr> <20011125005921.45291.qmail@web21104.mail.yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Hiten Pandya wrote:
> MH> The lock order verification is not part of the mtx
> MH> API.  It's debugging
> MH> stuff activated by default in -CURRENT.  If you do
> MH> not want to see these
> MH> warnings, remove ``options WITNESS'' from your
> MH> kernel conf or patch the
> MH> code to solve the problem :-)
> 
> hi,
> i know that bit.. the WITNESS option is commented
> which says about the mutexes, but what i mean.. if i
> wanted to patch a lock order reversal... how would i
> do that... (i am newbie [not so newbie..])..

First, locate the faulting part of code, then just modify it so that it
enforces the established lock order.  The way to fix it is somewhat
obvious, but it may indeed be very hard in some cases.

Good luck,
Maxime Henrion
-- 
Don't be fooled by cheap finnish imitations ; BSD is the One True Code

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




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