From owner-freebsd-current Mon Feb 10 9:38:28 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 3BCBE37B401 for ; Mon, 10 Feb 2003 09:38:27 -0800 (PST) Received: from angelica.unixdaemons.com (angelica.unixdaemons.com [209.148.64.135]) by mx1.FreeBSD.org (Postfix) with ESMTP id EA75943F85 for ; Mon, 10 Feb 2003 09:38:25 -0800 (PST) (envelope-from hiten@angelica.unixdaemons.com) Received: from angelica.unixdaemons.com (hiten@localhost.unixdaemons.com [127.0.0.1]) by angelica.unixdaemons.com (8.12.7/8.12.1) with ESMTP id h1AHcNOm052092; Mon, 10 Feb 2003 12:38:23 -0500 (EST) Received: (from hiten@localhost) by angelica.unixdaemons.com (8.12.7/8.12.1/Submit) id h1AHcMRH052091; Mon, 10 Feb 2003 12:38:22 -0500 (EST) (envelope-from hiten) Date: Mon, 10 Feb 2003 12:38:22 -0500 From: Hiten Pandya To: Alexey Zelkin Cc: Poul-Henning Kamp , current@FreeBSD.ORG Subject: Re: kld problem ? (was: Re: MSDOSFS wastes 256k when nothing is mounted!) Message-ID: <20030210173822.GB49848@unixdaemons.com> References: <31456.1044819599@critter.freebsd.dk> <20030209221621.A22410@phantom.cris.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030209221621.A22410@phantom.cris.net> User-Agent: Mutt/1.4i X-Operating-System: FreeBSD i386 X-Public-Key: http://www.pittgoth.com/~hiten/pubkey.asc X-URL: http://www.unixdaemons.com/~hiten X-PGP: http://pgp.mit.edu:11371/pks/lookup?search=Hiten+Pandya&op=index 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, Feb 09, 2003 at 10:16:21PM +0200, Alexey Zelkin wrote the words in effect of: > 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. This also happens when the Linux kernel module is loaded twice. Cheers. -- Hiten Pandya (hiten@unixdaemons.com, hiten@uk.FreeBSD.org) http://www.unixdaemons.com/~hiten/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message