From owner-freebsd-arch@FreeBSD.ORG Wed Aug 25 21:29:51 2010 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0BE84106564A for ; Wed, 25 Aug 2010 21:29:51 +0000 (UTC) (envelope-from andy@fud.org.nz) Received: from mail-iw0-f182.google.com (mail-iw0-f182.google.com [209.85.214.182]) by mx1.freebsd.org (Postfix) with ESMTP id D202C8FC1E for ; Wed, 25 Aug 2010 21:29:50 +0000 (UTC) Received: by iwn36 with SMTP id 36so1022097iwn.13 for ; Wed, 25 Aug 2010 14:29:50 -0700 (PDT) MIME-Version: 1.0 Received: by 10.231.182.204 with SMTP id cd12mr10818749ibb.101.1282769999275; Wed, 25 Aug 2010 13:59:59 -0700 (PDT) Sender: andy@fud.org.nz Received: by 10.231.187.6 with HTTP; Wed, 25 Aug 2010 13:59:59 -0700 (PDT) In-Reply-To: <20100825.144447.195066307629816163.imp@bsdimp.com> References: <34EF2360-1B68-4E0C-8CCE-409CE141D0B8@mac.com> <54210.1282752073@critter.freebsd.dk> <20100825.144447.195066307629816163.imp@bsdimp.com> Date: Thu, 26 Aug 2010 08:59:59 +1200 X-Google-Sender-Auth: dJAeRM0U-F2nutUQzTEk2aqwGqs Message-ID: From: Andrew Thompson To: "M. Warner Losh" Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: phk@phk.freebsd.dk, xcllnt@mac.com, freebsd-arch@freebsd.org Subject: Re: RFC: root mount enhancement (round 2) X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 Aug 2010 21:29:51 -0000 On 26 August 2010 08:44, M. Warner Losh wrote: > In message: <54210.1282752073@critter.freebsd.dk> > =A0 =A0 =A0 =A0 =A0 =A0"Poul-Henning Kamp" writes: > : In message <34EF2360-1B68-4E0C-8CCE-409CE141D0B8@mac.com>, Marcel Moole= naar wri > : tes: > : > : >don't want to enhance: A USB disk cannot always be used as a root > : >file system by virtue of the USB stack releasing the root mount > : >lock after creating the umass device, but before CAM has created > : >the corresponding da device. > : > : This is a bug which is entirely unrelated to how we find the > : root filesystem: =A0It should simply be fixed by CAM grabing a > : root mount lock when activated from USB and releasing it > : only when all it's stuff is done. > > We already do this... =A0But it is insufficient since usb discovery is > done asynchronously... Its more that the usb disk appears and the root mount lock is dropped without geom tasting taken into account. This was fixed with r190677 but then I was asked to back it out (r190878). > Scott has a similar fix in the pipeline, but I don't know the state of > it. It would be great to get this finished, I believe the solution Scott wanted was to properly use intr_config_hooks to kick off usb enumeration. Andrew