From owner-freebsd-current Sun Feb 9 12:57:39 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5669B37B401 for ; Sun, 9 Feb 2003 12:57:38 -0800 (PST) Received: from haystack.lclark.edu (lclark.edu [149.175.1.2]) by mx1.FreeBSD.org (Postfix) with SMTP id C834543F93 for ; Sun, 9 Feb 2003 12:57:37 -0800 (PST) (envelope-from eta@lclark.edu) Received: from [149.175.30.191] ([149.175.30.191]) by haystack.lclark.edu (SAVSMTP 3.0.0.44) with SMTP id M2003020912570627351 ; Sun, 09 Feb 2003 12:57:06 -0800 Subject: Re: kld problem ? (was: Re: MSDOSFS wastes 256k when nothing is mounted!) From: Eric Anholt To: Alexey Zelkin Cc: Poul-Henning Kamp , current@FreeBSD.ORG In-Reply-To: <20030209221621.A22410@phantom.cris.net> References: <31456.1044819599@critter.freebsd.dk> <20030209221621.A22410@phantom.cris.net> Content-Type: text/plain Organization: Message-Id: <1044824344.699.12.camel@leguin> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.2.0 Date: 09 Feb 2003 12:59:05 -0800 Content-Transfer-Encoding: 7bit Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Sun, 2003-02-09 at 12:16, Alexey Zelkin wrote: > hi, > > On Sun, Feb 09, 2003 at 08:39:59PM +0100, Poul-Henning Kamp wrote: > > > /*ARGSUSED*/ > > int > > msdosfs_init(vfsp) > > struct vfsconf *vfsp; > > { > > dehashtbl = hashinit(desiredvnodes/2, M_MSDOSFSMNT, &dehash); > > mtx_init(&dehash_mtx, "msdosfs dehash", NULL, MTX_DEF); > > return (0); > > } > > BTW, it reminds me a problem I found last month. If you've MSDOSFS > compiled in kernel and try to load msdosfs.ko with loader -- then > you're 100% will hit into 'mutex already initialized' (or something > like that) panic later in boot process. (i.e. msdosfs_init() is called > twice for some reason) > > I not sure if it's applicable to KLDs at all or to msdosfs only. http://www.freebsd.org/cgi/query-pr.cgi?pr=bin/34030 seems to be a similar problem. We've seen this with the agp module when it's in the kernel and in loader.conf. In the agp case, it appears to initialize, but then doesn't function when other devices (DRM) try to use it. I would guess it's being initialized twice, too. -- Eric Anholt eta@lclark.edu http://people.freebsd.org/~anholt/ anholt@FreeBSD.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message