Subject: Re: vfs init q
To: Jason Thorpe <thorpej@nas.nasa.gov>
From: Jaromir Dolecek <dolecek@ics.muni.cz>
List: tech-kern
Date: 02/13/2000 16:26:56
Jason Thorpe wrote:
> > filesystems' init routine is always called from process context, right ?
> > vfsinit() is called after proc0 is created and for LKMs, the init
> > is called from context of process loading the LKM AFAICS.
> > Am I right ?
>
> Right.
And, perhaps more importantly - can it sleep when called via vfsinit()
from main() ? Some filesystems initialize pools and they currently
don't pass PR_WAITOK. This is sometimes problem - when I load/unload
e.g. msdosfs LKM several times, I get occasional panic in pool initialization
function (I don't recall exactly, but probably pool_page_alloc_nointr()).
Jaromir
--
Jaromir Dolecek <jdolecek@NetBSD.org> http://www.ics.muni.cz/~dolecek/
@@@@ Wanna a real operating system ? Go and get NetBSD, damn! @@@@