Subject: Re: newlock
To: Garrett D'Amore <email@example.com>
From: Andrew Doran <ad@NetBSD.org>
Date: 09/04/2006 22:17:10
On Sun, Sep 03, 2006 at 07:31:55PM -0700, Garrett D'Amore wrote:
> Wrong. This works fine in Solaris. The spin mutex doesn't
> automatically release the spl -- instead it releases a _reference_ on
> the spl. The spl is only dropped when the reference reaches zero.
I have probably missed something, but I can't think of a clean way to do
this on NetBSD that justifies itself, given that it's not a big problem. I
still favour passing the saved spl between locks. If we wanted to, we could
teach LOCKDEBUG to catch simple mistakes.