From owner-freebsd-current Sun Feb 9 12: 9:59 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 7AA4637B401 for ; Sun, 9 Feb 2003 12:09:58 -0800 (PST) Received: from relay1.cris.net (relay1.cris.net [212.110.128.64]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3F22343F75 for ; Sun, 9 Feb 2003 12:09:55 -0800 (PST) (envelope-from ml@phantom.cris.net) Received: from phantom.cris.net (root@phantom.cris.net [212.110.130.74]) by relay1.cris.net (8.12.6/8.12.6) with ESMTP id h19MEvvb026869; Sun, 9 Feb 2003 22:14:58 GMT Received: (from ml@localhost) by phantom.cris.net (8.12.6/8.12.2) id h19KGM0X022443; Sun, 9 Feb 2003 22:16:22 +0200 (EET) (envelope-from ml) Date: Sun, 9 Feb 2003 22:16:21 +0200 From: Alexey Zelkin To: Poul-Henning Kamp Cc: current@FreeBSD.ORG Subject: kld problem ? (was: Re: MSDOSFS wastes 256k when nothing is mounted!) Message-ID: <20030209221621.A22410@phantom.cris.net> References: <31456.1044819599@critter.freebsd.dk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <31456.1044819599@critter.freebsd.dk>; from phk@phk.freebsd.dk on Sun, Feb 09, 2003 at 08:39:59PM +0100 X-Operating-System: FreeBSD 4.7-STABLE i386 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 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. > Somebody: please fix so this doesn't suck. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message