Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 22 May 1998 22:53:23 +0200
From:      Eivind Eklund <eivind@yes.no>
To:        dyson@FreeBSD.ORG, Greg Lehey <grog@lemis.com>
Cc:        hackers@FreeBSD.ORG
Subject:   Re: SMP resource locking
Message-ID:  <19980522225323.00501@follo.net>
In-Reply-To: <199805220501.AAA02725@dyson.iquest.net>; from John S. Dyson on Fri, May 22, 1998 at 12:01:18AM -0500
References:  <19980522114305.Z27201@freebie.lemis.com> <199805220501.AAA02725@dyson.iquest.net>

next in thread | previous in thread | raw e-mail | index | archive | help
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



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