From owner-freebsd-hackers Fri May 22 13:53:51 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id NAA14754 for freebsd-hackers-outgoing; Fri, 22 May 1998 13:53:51 -0700 (PDT) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from ns1.yes.no (ns1.yes.no [195.119.24.10]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id NAA14705; Fri, 22 May 1998 13:53:29 -0700 (PDT) (envelope-from eivind@bitbox.follo.net) Received: from bitbox.follo.net (bitbox.follo.net [195.204.143.218]) by ns1.yes.no (8.8.7/8.8.7) with ESMTP id UAA01311; Fri, 22 May 1998 20:53:28 GMT Received: (from eivind@localhost) by bitbox.follo.net (8.8.8/8.8.6) id WAA02288; Fri, 22 May 1998 22:53:23 +0200 (MET DST) Message-ID: <19980522225323.00501@follo.net> Date: Fri, 22 May 1998 22:53:23 +0200 From: Eivind Eklund To: dyson@FreeBSD.ORG, Greg Lehey Cc: hackers@FreeBSD.ORG Subject: Re: SMP resource locking References: <19980522114305.Z27201@freebie.lemis.com> <199805220501.AAA02725@dyson.iquest.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.89.1i In-Reply-To: <199805220501.AAA02725@dyson.iquest.net>; from John S. Dyson on Fri, May 22, 1998 at 12:01:18AM -0500 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Fri, May 22, 1998 at 12:01:18AM -0500, John S. Dyson wrote: > Greg Lehey said: > > I haven't paid much attention to SMP problems yet, but I need to now. > > Can somebody point me to functions to ensure single-thread passing of > > critical sections? In a UP environment I'd use splhigh (), but that's > > obviously not enough for SMP. > > > For now, splhigh in a normal driver context will work. That is > of course broken, but it will work fine. In the future, it won't. What's the right way to write this now? Add locks 'as one feel like', or just ignore the lock-issues beyond spl(), or ? Eivind, curious. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message