From owner-freebsd-arch@FreeBSD.ORG Wed Aug 25 20:49:36 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 2E2B7106566B for ; Wed, 25 Aug 2010 20:49:36 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (bsdimp.com [199.45.160.85]) by mx1.freebsd.org (Postfix) with ESMTP id E4F2C8FC0A for ; Wed, 25 Aug 2010 20:49:35 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by harmony.bsdimp.com (8.14.3/8.14.1) with ESMTP id o7PKijUs013734; Wed, 25 Aug 2010 14:44:46 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Wed, 25 Aug 2010 14:44:47 -0600 (MDT) Message-Id: <20100825.144447.195066307629816163.imp@bsdimp.com> To: phk@phk.freebsd.dk From: "M. Warner Losh" In-Reply-To: <54210.1282752073@critter.freebsd.dk> References: <34EF2360-1B68-4E0C-8CCE-409CE141D0B8@mac.com> <54210.1282752073@critter.freebsd.dk> X-Mailer: Mew version 6.3 on Emacs 22.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: 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 20:49:36 -0000 In message: <54210.1282752073@critter.freebsd.dk> "Poul-Henning Kamp" writes: : In message <34EF2360-1B68-4E0C-8CCE-409CE141D0B8@mac.com>, Marcel Moolenaar 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: It 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... But it is insufficient since usb discovery is done asynchronously... Scott has a similar fix in the pipeline, but I don't know the state of it. Warner