From owner-freebsd-current Mon Mar 1 0:32:48 1999 Delivered-To: freebsd-current@freebsd.org Received: from godzilla.zeta.org.au (godzilla.zeta.org.au [203.26.10.9]) by hub.freebsd.org (Postfix) with ESMTP id DB08E15185; Mon, 1 Mar 1999 00:32:43 -0800 (PST) (envelope-from bde@godzilla.zeta.org.au) Received: (from bde@localhost) by godzilla.zeta.org.au (8.8.7/8.8.7) id TAA21134; Mon, 1 Mar 1999 19:32:19 +1100 Date: Mon, 1 Mar 1999 19:32:19 +1100 From: Bruce Evans Message-Id: <199903010832.TAA21134@godzilla.zeta.org.au> To: assar@sics.se, bde@zeta.org.au Subject: Re: panic: zone: entry not free Cc: eivind@FreeBSD.ORG, freebsd-current@FreeBSD.ORG Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG >> There are many potential problems with SMP kernels. Many of the inline >> functions in depend on SMP. We've already pessimised >> the usual (non-SMP) case by uninlining a few too many spl-related >> functions. > >So you think it would be bad to have zalloc and zfree as non-inline >functions? That would mean that KLDs would be different depending on >the options used to build the kernel and that KLDs would need some way >of figuring out the these options. How should that be done? By >installing opt_global.h after building the kernel? I think global options should be avoided if possible. When they can't be avoided, KLDs should probably extern versions of some functions that are normally static inline, and whatever else it takes for them to be to be independent of kernel options. The kernel proper must provide the uninlined versions (compiled with its options). Bruce To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message