From owner-freebsd-hackers@FreeBSD.ORG Thu Sep 29 19:36:56 2005 Return-Path: X-Original-To: freebsd-hackers@FreeBSD.org Delivered-To: freebsd-hackers@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F0A8916A41F; Thu, 29 Sep 2005 19:36:56 +0000 (GMT) (envelope-from phk@critter.freebsd.dk) Received: from phk.freebsd.dk (phk.freebsd.dk [130.225.244.222]) by mx1.FreeBSD.org (Postfix) with ESMTP id 938AC43D49; Thu, 29 Sep 2005 19:36:56 +0000 (GMT) (envelope-from phk@critter.freebsd.dk) Received: from critter.freebsd.dk (unknown [192.168.48.2]) by phk.freebsd.dk (Postfix) with ESMTP id 53FE5BC74; Thu, 29 Sep 2005 19:36:54 +0000 (UTC) To: John Baldwin From: "Poul-Henning Kamp" In-Reply-To: Your message of "Thu, 29 Sep 2005 14:55:58 EDT." <200509291455.59914.jhb@FreeBSD.org> Date: Thu, 29 Sep 2005 21:36:53 +0200 Message-ID: <15627.1128022613@critter.freebsd.dk> Sender: phk@critter.freebsd.dk Cc: freebsd-hackers@FreeBSD.org, Divacky Roman , Stanislav Sedov Subject: Re: dev_lock() question X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Sep 2005 19:36:57 -0000 In message <200509291455.59914.jhb@FreeBSD.org>, John Baldwin writes: >On Thursday 29 September 2005 02:14 pm, Poul-Henning Kamp wrote: >> In message <200509291408.18098.jhb@FreeBSD.org>, John Baldwin writes: >> >Actually, you would think that it could be initialized either via an early >> >SYSINIT() or in the init_mutexes() function in kern_mutex.c and thus not >> > need the early check and avoid penalizing dev_lock(). >> > >> >phk, how early his dev_lock needed? >> >> Far too early due to console madness (in syscons I belive). > >So would mutex_init() work? Havn't tried. It basically has to work right before the copyright is printed. -- 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.