From owner-cvs-src@FreeBSD.ORG Mon Jan 29 18:46:15 2007 Return-Path: X-Original-To: cvs-src@freebsd.org Delivered-To: cvs-src@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 5171B16A405; Mon, 29 Jan 2007 18:46:15 +0000 (UTC) (envelope-from pjd@garage.freebsd.pl) Received: from mail.garage.freebsd.pl (arm132.internetdsl.tpnet.pl [83.17.198.132]) by mx1.freebsd.org (Postfix) with ESMTP id D312113C478; Mon, 29 Jan 2007 18:46:14 +0000 (UTC) (envelope-from pjd@garage.freebsd.pl) Received: by mail.garage.freebsd.pl (Postfix, from userid 65534) id 5428F48800; Mon, 29 Jan 2007 19:46:12 +0100 (CET) Received: from localhost (154.81.datacomsa.pl [195.34.81.154]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.garage.freebsd.pl (Postfix) with ESMTP id 0A7E4487FE; Mon, 29 Jan 2007 19:46:07 +0100 (CET) Date: Mon, 29 Jan 2007 19:45:22 +0100 From: Pawel Jakub Dawidek To: Nate Lawson Message-ID: <20070129184522.GD87767@garage.freebsd.pl> References: <20070128202917.5B67916A5A6@hub.freebsd.org> <45BD82D2.20301@root.org> <20070129175222.GA87767@garage.freebsd.pl> <45BE37DC.6080509@root.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="rz+pwK2yUstbofK6" Content-Disposition: inline In-Reply-To: <45BE37DC.6080509@root.org> X-PGP-Key-URL: http://people.freebsd.org/~pjd/pjd.asc X-OS: FreeBSD 7.0-CURRENT i386 User-Agent: mutt-ng/devel-r804 (FreeBSD) X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on mail.garage.freebsd.pl X-Spam-Level: X-Spam-Status: No, score=-2.6 required=3.0 tests=BAYES_00 autolearn=ham version=3.0.4 Cc: cvs-src@freebsd.org, src-committers@freebsd.org, cvs-all@freebsd.org Subject: Re: cvs commit: src/sys/geom/eli g_eli.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Jan 2007 18:46:15 -0000 --rz+pwK2yUstbofK6 Content-Type: text/plain; charset=iso-8859-2 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Jan 29, 2007 at 10:07:24AM -0800, Nate Lawson wrote: > Pawel Jakub Dawidek wrote: > >Hmm, I thought that cold is zeroed before smp_started is set? >=20 > I don't think that's guaranteed. Besides, there's an easier way to fix y= our problem. Instead of calling kthread_create() from your geom create rou= tine directly, queue a=20 > stub request on the thread taskqueue to call kthread_create(). >=20 > For example, see sys/dev/acpica/acpi_acad.c. We call this from attach() = and then the system thread only runs and then calls acpi_acad_init() onc= e all CPUs are=20 > initialized. See sys/sys/taskqueue.h for how to add a task to the system= thread taskqueue: >=20 > taskqueue_enqueue(taskqueue_thread, &task); If we want to fix it better, I think GEOM should start (tasting at least) after all CPUs are online. --=20 Pawel Jakub Dawidek http://www.wheel.pl pjd@FreeBSD.org http://www.FreeBSD.org FreeBSD committer Am I Evil? Yes, I Am! --rz+pwK2yUstbofK6 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (FreeBSD) iD8DBQFFvkDCForvXbEpPzQRAsz4AJwOgS6mpJDRwf9QiNZguPOopfdmiACgnLbT QFJMfX2KQJ1/KbH3w5yEaZw= =9ybj -----END PGP SIGNATURE----- --rz+pwK2yUstbofK6--