From owner-cvs-all@FreeBSD.ORG Sat Nov 6 08:18:20 2004 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 854FF16A4CE; Sat, 6 Nov 2004 08:18:20 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7913343D2F; Sat, 6 Nov 2004 08:18:20 +0000 (GMT) (envelope-from davidxu@freebsd.org) Received: from [127.0.0.1] (davidxu@localhost [127.0.0.1]) iA68IFee074168; Sat, 6 Nov 2004 08:18:17 GMT (envelope-from davidxu@freebsd.org) Message-ID: <418C88C5.9010803@freebsd.org> Date: Sat, 06 Nov 2004 16:18:13 +0800 From: David Xu User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.2) Gecko/20040921 X-Accept-Language: en-us, en MIME-Version: 1.0 To: David Schultz References: <200410311932.i9VJWvmo058193@repoman.freebsd.org> <20041101045331.GP16728@cs.rice.edu> <20041101105113.GS24892@elvis.mu.org> <200411011441.33067.jhb@FreeBSD.org> <20041106062955.GA1986@VARK.MIT.EDU> <418C844E.3030403@freebsd.org> <20041106081147.GA1419@VARK.MIT.EDU> In-Reply-To: <20041106081147.GA1419@VARK.MIT.EDU> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: src-committers@freebsd.org cc: John Baldwin cc: Alan Cox cc: cvs-src@freebsd.org cc: Alfred Perlstein cc: cvs-all@freebsd.org Subject: Re: cvs commit: src/sys/vm vm_zeroidle.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 06 Nov 2004 08:18:20 -0000 David Schultz wrote: >On Sat, Nov 06, 2004, David Xu wrote: >[...] > > >>It is legal to call cv_signal() without a locked mutex. >> >> > >Not according to the manpage or the comments in the code. >What you say is true about pthreads, but pthreads is broken >in this respect. > > > > I don't think it is broken, calling cv_signal with mutex locked just introduce ping-pong problem.