Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 23 Nov 2002 20:28:16 +1100 (EST)
From:      Bruce Evans <bde@zeta.org.au>
To:        Mitsuru IWASAKI <iwasaki@jp.FreeBSD.org>
Cc:        kris@obsecurity.org, <jhb@FreeBSD.ORG>, <current@FreeBSD.ORG>
Subject:   Re: Lots of swapping from 'kldload acpi'
Message-ID:  <20021123201910.R48944-100000@gamplex.bde.org>
In-Reply-To: <20021123.105846.06278793.iwasaki@jp.FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, 23 Nov 2002, Mitsuru IWASAKI wrote:

> > On Fri, Nov 22, 2002 at 04:08:05PM -0500, John Baldwin wrote:
> >
> > > > Can something be done to guard against this?
> > >
> > > It's supposed to do that already:
> >
> > > If that isn't working then there is a bug.
> >
> > There's a bug :-)
>
> Ah, Yes.
> The function is called via SYSINIT.  We need more `if (!cold)' checkings.
> I'll take this one.

The existence of SYSINIT is a bug, but shouldn't the order of SYSINITs be
such that they are run before MOD_LOAD events?

SYSINITs have no way to communicate failure, so they are especially broken
when they are used to allocate resources.  Users of the resources have no
way to tell whether the SYSINITs worked except to check for the existence
of the resources before using them, but if they can do that properly
then they can just call the resource allocation functions.

Bruce


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20021123201910.R48944-100000>