From owner-cvs-all Mon Jul 8 16:40:29 2002 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 811B237B408; Mon, 8 Jul 2002 16:40:19 -0700 (PDT) Received: from sccrmhc01.attbi.com (sccrmhc01.attbi.com [204.127.202.61]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4CE1343E42; Mon, 8 Jul 2002 16:40:18 -0700 (PDT) (envelope-from julian@elischer.org) Received: from InterJet.elischer.org ([12.232.206.8]) by sccrmhc01.attbi.com (InterMail vM.4.01.03.27 201-229-121-127-20010626) with ESMTP id <20020708234017.JDRJ29588.sccrmhc01.attbi.com@InterJet.elischer.org>; Mon, 8 Jul 2002 23:40:17 +0000 Received: from localhost (localhost.elischer.org [127.0.0.1]) by InterJet.elischer.org (8.9.1a/8.9.1) with ESMTP id QAA31449; Mon, 8 Jul 2002 16:30:17 -0700 (PDT) Date: Mon, 8 Jul 2002 16:30:16 -0700 (PDT) From: Julian Elischer To: Peter Wemm Cc: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/sys/vm vm_zeroidle.c In-Reply-To: <200207082312.g68NCbKo022767@freefall.freebsd.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG This is a good reason to have spin and sleep mutexes declared as different types so that the compiler can notice this sort of thing. On Mon, 8 Jul 2002, Peter Wemm wrote: > peter 2002/07/08 16:12:37 PDT > > Modified files: > sys/vm vm_zeroidle.c > Log: > vm_page_queue_free_mtx is a spin mutex, not a normal sleep mutex. > I do not know why this didn't panic my box, but I have most certainly > been using it: > peter@overcee[3:14pm]~src/sys/i386/i386-110> sysctl -a | grep zero > vm.stats.misc.zero_page_count: 2235 > vm.stats.misc.cnt_prezero: 638951 > vm.idlezero_enable: 1 > vm.idlezero_maxrun: 16 > > Submitted by: Tor.Egge@cvsup.no.freebsd.org > Approved by: Tor's patches are never wrong. :-) > > Revision Changes Path > 1.13 +4 -4 src/sys/vm/vm_zeroidle.c > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message