Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 23 May 2001 17:17:09 -0400
From:      Alfred Perlstein <bright@rush.net>
To:        John Baldwin <jhb@FreeBSD.org>
Cc:        cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   Re: cvs commit: src/sys/kern kern_synch.c
Message-ID:  <20010523171709.R17514@superconductor.rush.net>
In-Reply-To: <200105231938.f4NJcRC07053@freefall.freebsd.org>; from jhb@FreeBSD.org on Wed, May 23, 2001 at 12:38:27PM -0700
References:  <200105231938.f4NJcRC07053@freefall.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
* John Baldwin <jhb@FreeBSD.org> [010523 15:39] wrote:
> jhb         2001/05/23 12:38:27 PDT
> 
>   Modified files:
>     sys/kern             kern_synch.c 
>   Log:
>   Add in assertions to ensure that we always call msleep or mawait with
>   either a timeout or a held mutex to detect unprotected infinite sleeps
>   that can easily lead to deadlock.
>   
>   Submitted by:	alfred

I'm glad to see this assertion go in, however it's really not perfect,
it will not detect tsleeps with a timeout without a mutex held because
that is "valid".  I really think we need some sort of way to really
"pause" rather than wait for a signalling.  Anyhow, we'll get to it
one day. :)

-- 
-Alfred Perlstein [alfred@freebsd.org]
Instead of asking why a piece of software is using "1970s technology,"
start asking why software is ignoring 30 years of accumulated wisdom.

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




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