From owner-freebsd-current Mon Feb 10 9:57:43 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 12CDC37B401 for ; Mon, 10 Feb 2003 09:57:42 -0800 (PST) Received: from c001.snv.cp.net (h020.c001.snv.cp.net [209.228.32.134]) by mx1.FreeBSD.org (Postfix) with SMTP id 48A1943FA3 for ; Mon, 10 Feb 2003 09:57:41 -0800 (PST) (envelope-from kutulu@kutulu.org) Received: (cpmta 10000 invoked from network); 10 Feb 2003 09:57:40 -0800 Received: from 64.212.128.3 (HELO kutulu) by smtp.register-admin.com (209.228.32.134) with SMTP; 10 Feb 2003 09:57:40 -0800 X-Sent: 10 Feb 2003 17:57:40 GMT Message-ID: <006b01c2d12d$e769f690$29330f0a@lcapps.educate.com> From: "Kutulu" To: "Hiten Pandya" , "Alexey Zelkin" Cc: "Poul-Henning Kamp" , References: <31456.1044819599@critter.freebsd.dk> <20030209221621.A22410@phantom.cris.net> <20030210173822.GB49848@unixdaemons.com> Subject: Re: kld problem ? (was: Re: MSDOSFS wastes 256k when nothing is mounted!) Date: Mon, 10 Feb 2003 12:57:39 -0500 Organization: KutuluWare Software Services MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 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 ----- Original Message ----- From: "Hiten Pandya" To: "Alexey Zelkin" Cc: "Poul-Henning Kamp" ; Sent: Monday, February 10, 2003 12:38 PM Subject: Re: kld problem ? (was: Re: MSDOSFS wastes 256k when nothing is mounted!) > 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. I've seen this occur with at least one device/pseudodevice module before: if I both compiled itinto my kernel and have it loaded in /boot/loader.conf, my machine panics almost immediately. At the time I just assumed I was being a moron for trying to load the same driver twice, two different ways, and disabled the kld. If this isn't supposed to happen I'll go back and try to find the modules that gave me problems. (I *think* it was either random.ko or procfs.ko). --Mike To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message