Subject: Re: mfi(4) and bio_register()
To: Martin Husemann <email@example.com>
From: Juan RP <firstname.lastname@example.org>
Date: 11/16/2007 10:50:19
On Fri, 16 Nov 2007 10:42:59 +0100
Martin Husemann <email@example.com> wrote:
> On Fri, Nov 16, 2007 at 10:34:25AM +0100, Juan RP wrote:
> > Hi,
> > There's currently a problem with mfi(4) on mfi_attach() calling
> > bio_register(). At the point on where mfi_attach() is called
> > the pseudo-device bio(4) hasn't been initialized so bio_register()
> > fails when LOCKDEBUG is used with an uninitialized lock.
> I would blatantly abuse config_interrupts() for this.
Here's a patch that uses config_interrupts():
Juan Romero Pardines - The NetBSD Project
http://plog.xtrarom.org - NetBSD/pkgsrc news in Spanish