From owner-cvs-src@FreeBSD.ORG Sat Aug 28 23:48:31 2004 Return-Path: Delivered-To: cvs-src@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4F95316A4CE; Sat, 28 Aug 2004 23:48:31 +0000 (GMT) Received: from pd2mo3so.prod.shaw.ca (shawidc-mo1.cg.shawcable.net [24.71.223.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id D7C6043D41; Sat, 28 Aug 2004 23:48:30 +0000 (GMT) (envelope-from colin.percival@wadham.ox.ac.uk) Received: from pd2mr4so.prod.shaw.ca (pd2mr4so-qfe3.prod.shaw.ca [10.0.141.107]) by l-daemon (Sun ONE Messaging Server 6.0 HotFix 1.01 (built Mar 15 2004)) with ESMTP id <0I3600ABDAQ1H380@l-daemon>; Sat, 28 Aug 2004 14:10:49 -0600 (MDT) Received: from pn2ml2so.prod.shaw.ca ([10.0.121.146]) by pd2mr4so.prod.shaw.ca (Sun ONE Messaging Server 6.0 HotFix 1.01 (built Mar 15 2004)) with ESMTP id <0I36009EWAQ1UWM0@pd2mr4so.prod.shaw.ca>; Sat, 28 Aug 2004 14:10:49 -0600 (MDT) Received: from piii600.wadham.ox.ac.uk (S0106006067227a4a.vc.shawcable.net [24.87.233.42])2003)) with ESMTP id <0I3600M0VAPZ1L@l-daemon>; Sat, 28 Aug 2004 14:10:49 -0600 (MDT) Date: Sat, 28 Aug 2004 13:08:30 -0700 From: Colin Percival In-reply-to: <20040828195953.GE26424@electra.cse.Buffalo.EDU> X-Sender: cperciva@popserver.sfu.ca (Unverified) To: Ken Smith Message-id: <6.1.0.6.1.20040828130357.0387c878@popserver.sfu.ca> MIME-version: 1.0 X-Mailer: QUALCOMM Windows Eudora Version 6.1.0.6 Content-type: text/plain; charset=us-ascii References: <200408281954.i7SJsojG018658@repoman.freebsd.org> <20040828195953.GE26424@electra.cse.Buffalo.EDU> cc: cvs-src@FreeBSD.org cc: src-committers@FreeBSD.org cc: cvs-all@FreeBSD.org cc: Ken Smith Subject: Re: cvs commit: src/sys/dev/md md.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.1 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: Sat, 28 Aug 2004 23:48:31 -0000 At 12:59 28/08/2004, Ken Smith wrote: >On Sat, Aug 28, 2004 at 07:54:50PM +0000, Ken Smith wrote: >> Back out the MFC done as rev 1.127.2.1. It seems to fix the problem of >> mdconfig returning before the device's name appears in /dev but it seems >> to cause a worse problem. When booting the installation media (CD or >> boot floppies) the system hangs after the device probes, at the point >> it should be trying to mount a MD-based filesystem as its root filesystem. > >Colin/Poul-Henning, do you mind checking into why the call to >g_waitidle() seems to cause problems using an md device as a root >filesystem during install? I'm guessing that at this point in the boot process, geom hasn't reached the stage of being able to look at events and do something with them. I suspect that replacing g_waitidle(); with if (sc->type != MD_PRELOAD) g_waitidle(); will fix this problem; I'll test and commit this later. Colin Percival