Date: Wed, 23 May 2001 16:05:41 -0700 (PDT) From: John Baldwin <jhb@FreeBSD.org> To: Alfred Perlstein <bright@rush.net> Cc: cvs-all@FreeBSD.org, cvs-committers@FreeBSD.org Subject: Re: cvs commit: src/sys/kern kern_synch.c Message-ID: <XFMail.010523160541.jhb@FreeBSD.org> In-Reply-To: <20010523171709.R17514@superconductor.rush.net>
next in thread | previous in thread | raw e-mail | index | archive | help
On 23-May-01 Alfred Perlstein wrote: > * 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. :) Agreed. cv's require a mutex, so as things move to cv's this will become less of a problem. -- John Baldwin <jhb@FreeBSD.org> -- http://www.FreeBSD.org/~jhb/ PGP Key: http://www.baldwin.cx/~john/pgpkey.asc "Power Users Use the Power to Serve!" - http://www.FreeBSD.org/ 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?XFMail.010523160541.jhb>