From owner-freebsd-geom@FreeBSD.ORG Mon Apr 18 21:27:48 2005 Return-Path: Delivered-To: freebsd-geom@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6A17416A4CE for ; Mon, 18 Apr 2005 21:27:48 +0000 (GMT) Received: from mx01.stofanet.dk (mx01.stofanet.dk [212.10.10.11]) by mx1.FreeBSD.org (Postfix) with ESMTP id C243B43D39 for ; Mon, 18 Apr 2005 21:27:47 +0000 (GMT) (envelope-from phk@critter.freebsd.dk) Received: from d40a2021.rev.stofanet.dk ([212.10.32.33] helo=critter.freebsd.dk) by mx01.stofanet.dk (envelope-from ) with esmtp id 1DNdmU-0006SX-0a for geom@freebsd.org; Mon, 18 Apr 2005 23:27:46 +0200 Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.13.3/8.13.3) with ESMTP id j3ILRi2O002700 for ; Mon, 18 Apr 2005 23:27:45 +0200 (CEST) (envelope-from phk@critter.freebsd.dk) To: geom@freebsd.org From: Poul-Henning Kamp Date: Mon, 18 Apr 2005 23:27:44 +0200 Message-ID: <2699.1113859664@critter.freebsd.dk> Sender: phk@critter.freebsd.dk Subject: KPI for holding off root mounting X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 Apr 2005 21:27:48 -0000 This is the new official KPI for holding off root mounts. It may be relevant to certain types of GEOM classes as well. Poul-Henning phk 2005-04-18 21:21:26 UTC FreeBSD src repository Modified files: sys/dev/ata ata-all.c sys/geom geom_kern.c sys/kern vfs_mount.c sys/sys systm.h Log: Add a named reference-count KPI to hold off mounting of the root filesystem. While we wait for holds to be released, print a list of who holds us back once per second. Use the new KPI from GEOM instead of vfs_mount.c calling g_waitidle(). Use the new KPI also from ata. With ATAmkIII's newbusification, ata could narrowly miss the window and ad0 would not exist when we tried to mount root. Revision Changes Path 1.243 +3 -0 src/sys/dev/ata/ata-all.c 1.38 +6 -0 src/sys/geom/geom_kern.c 1.189 +49 -6 src/sys/kern/vfs_mount.c 1.232 +7 -0 src/sys/sys/systm.h -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence.